#2142A6#2142A6

#2142A6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.166 H 265.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2142A6
RGBrgb(33, 66, 166)
HSLhsl(225, 67%, 39%)
HSVhsv(225, 80%, 65%)
CMYKcmyk(80.1%, 60.2%, 0%, 34.9%)
CIE-LABlab(31.74, 25.89, -57.15)
CIE-LCHlch(31.74, 62.74, 294.38°)
OKLaboklab(42.12% -0.0128 -0.1652)
OKLCHoklch(42.12% 0.166 265.6)
XYZxyz(9.4559, 6.9718, 36.9163)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142A6 #A68521
analogous
#2185A6 #2142A6 #4321A6
triadic
#2142A6 #A62142 #42A621
tetradic
#2142A6 #A62185 #A68521 #21A643
square
#2142A6 #A62185 #A68521 #21A643
split-complementary
#2142A6 #A64321 #85A621
monochromatic
#0D1940 #172E73 #2142A6 #2F58D6 #6281E0

Accessibility & contrast

On white

8.77
#2142A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2142A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142A6
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142A6#FFFFFF#000000##FFFFFF
##2142A61.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2142a6;
/* rgb */ color: rgb(33, 66, 166);
/* oklch */ color: oklch(42.1% 0.166 265.6);
Tailwind
colors: {
  custom: {
    50: '#7375c1',
    500: '#2142a6',
    950: '#000000',
  },
}
SCSS
$custom: #2142a6;
$custom-light: #7375c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2142a6",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 225.113,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42124,
    "c": 0.16567,
    "h": 265.6
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#2142A6
secondary
#C5AB5E
accent
#BF3EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2142A6

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

Preview Lab → · Contrast checker → · Palette generator →

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