#2142A2#2142A2

#2142A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 265.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2142A2
RGBrgb(33, 66, 162)
HSLhsl(225, 66%, 38%)
HSVhsv(225, 80%, 64%)
CMYKcmyk(79.6%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.41, 24.34, -55.28)
CIE-LCHlch(31.41, 60.40, 293.76°)
OKLaboklab(41.77% -0.0129 -0.1597)
OKLCHoklch(41.77% 0.16 265.4)
XYZxyz(9.0947, 6.8273, 35.0139)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142A2 #A28121
analogous
#2182A2 #2142A2 #4021A2
triadic
#2142A2 #A22142 #42A221
tetradic
#2142A2 #A22182 #A28121 #21A240
square
#2142A2 #A22182 #A28121 #21A240
split-complementary
#2142A2 #A24021 #82A221
monochromatic
#0C193C #172D6F #2142A2 #2C57D4 #5F80DE

Accessibility & contrast

On white

8.88
#2142A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2142A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142A2
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142A2#FFFFFF#000000##FFFFFF
##2142A21.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2142a2;
/* rgb */ color: rgb(33, 66, 162);
/* oklch */ color: oklch(41.8% 0.160 265.4);
Tailwind
colors: {
  custom: {
    50: '#7275be',
    500: '#2142a2',
    950: '#000000',
  },
}
SCSS
$custom: #2142a2;
$custom-light: #7275be;
$custom-dark: #000000;
JSON
{
  "hex": "#2142a2",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 224.651,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41773,
    "c": 0.16023,
    "h": 265.4
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#2142A2
secondary
#C3A95C
accent
#BE3FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2142A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2142A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva