#2142A7#2142A7

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

Color values

HEX#2142A7
RGBrgb(33, 66, 167)
HSLhsl(225, 67%, 39%)
HSVhsv(225, 80%, 65%)
CMYKcmyk(80.2%, 60.5%, 0%, 34.5%)
CIE-LABlab(31.83, 26.28, -57.61)
CIE-LCHlch(31.83, 63.32, 294.52°)
OKLaboklab(42.21% -0.0127 -0.1665)
OKLCHoklch(42.21% 0.167 265.6)
XYZxyz(9.5480, 7.0087, 37.4013)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142A7 #A78621
analogous
#2185A7 #2142A7 #4321A7
triadic
#2142A7 #A72142 #42A721
tetradic
#2142A7 #A72185 #A78621 #21A743
square
#2142A7 #A72185 #A78621 #21A743
split-complementary
#2142A7 #A74321 #85A721
monochromatic
#0D1A41 #172E74 #2142A7 #2F58D6 #6281E0

Accessibility & contrast

On white

8.74
#2142A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2142A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142A7
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142A7#FFFFFF#000000##FFFFFF
##2142A71.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2142a7;
/* rgb */ color: rgb(33, 66, 167);
/* oklch */ color: oklch(42.2% 0.167 265.6);
Tailwind
colors: {
  custom: {
    50: '#7376c2',
    500: '#2142a7',
    950: '#000000',
  },
}
SCSS
$custom: #2142a7;
$custom-light: #7376c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2142a7",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 225.224,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.16703,
    "h": 265.6
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#2142A7
secondary
#C5AC5F
accent
#C03EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2142A7

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

Preview Lab → · Contrast checker → · Palette generator →

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