#2127AA#2127AA

#2127AA is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 37.9% C 0.201 H 270.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2127AA
RGBrgb(33, 39, 170)
HSLhsl(237, 67%, 40%)
HSVhsv(237, 81%, 67%)
CMYKcmyk(80.6%, 77.1%, 0%, 33.3%)
CIE-LABlab(25.79, 44.39, -69.34)
CIE-LCHlch(25.79, 82.33, 302.63°)
OKLaboklab(37.91% -0.0001 -0.2008)
OKLCHoklch(37.91% 0.201 270)
XYZxyz(8.6059, 4.6757, 38.4713)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127AA #AAA421
analogous
#216CAA #2127AA #5F21AA
triadic
#2127AA #AA2127 #27AA21
tetradic
#2127AA #AA216C #AAA421 #21AA5F
square
#2127AA #AA216C #AAA421 #21AA5F
split-complementary
#2127AA #AA5F21 #6CAA21
monochromatic
#0D0F43 #171B77 #2127AA #3138D7 #646AE1

Accessibility & contrast

On white

10.85
#2127AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2127AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127AA
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127AA#FFFFFF#000000##FFFFFF
##2127AA1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2127aa;
/* rgb */ color: rgb(33, 39, 170);
/* oklch */ color: oklch(37.9% 0.201 270.0);
Tailwind
colors: {
  custom: {
    50: '#7663c5',
    500: '#2127aa',
    950: '#000000',
  },
}
SCSS
$custom: #2127aa;
$custom-light: #7663c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2127aa",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 237.372,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37909,
    "c": 0.20085,
    "h": 270
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#2127AA
secondary
#C6C261
accent
#E33DEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2127AA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2127AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva