#2142A8#2142A8

#2142A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.168 H 265.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2142A8
RGBrgb(33, 66, 168)
HSLhsl(225, 67%, 39%)
HSVhsv(225, 80%, 66%)
CMYKcmyk(80.4%, 60.7%, 0%, 34.1%)
CIE-LABlab(31.91, 26.67, -58.07)
CIE-LCHlch(31.91, 63.90, 294.67°)
OKLaboklab(42.3% -0.0127 -0.1679)
OKLCHoklch(42.3% 0.168 265.7)
XYZxyz(9.6408, 7.0458, 37.8901)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142A8 #A88721
analogous
#2186A8 #2142A8 #4321A8
triadic
#2142A8 #A82142 #42A821
tetradic
#2142A8 #A82186 #A88721 #21A843
square
#2142A8 #A82186 #A88721 #21A843
split-complementary
#2142A8 #A84321 #86A821
monochromatic
#0D1A42 #172E75 #2142A8 #3059D6 #6382E0

Accessibility & contrast

On white

8.72
#2142A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2142A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142A8
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142A8#FFFFFF#000000##FFFFFF
##2142A81.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2142a8;
/* rgb */ color: rgb(33, 66, 168);
/* oklch */ color: oklch(42.3% 0.168 265.7);
Tailwind
colors: {
  custom: {
    50: '#7376c3',
    500: '#2142a8',
    950: '#000000',
  },
}
SCSS
$custom: #2142a8;
$custom-light: #7376c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2142a8",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 225.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42302,
    "c": 0.16838,
    "h": 265.7
  },
  "luminance": 0.07047
}

Semantic roles & 50–950 ramp

primary
#2142A8
secondary
#C5AC5F
accent
#C03EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2142A8

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

Preview Lab → · Contrast checker → · Palette generator →

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