#2142B4#2142B4

#2142B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.184 H 266.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2142B4
RGBrgb(33, 66, 180)
HSLhsl(227, 69%, 42%)
HSVhsv(227, 82%, 71%)
CMYKcmyk(81.7%, 63.3%, 0%, 29.4%)
CIE-LABlab(32.95, 31.27, -63.53)
CIE-LCHlch(32.95, 70.81, 296.21°)
OKLaboklab(43.39% -0.0127 -0.1839)
OKLCHoklch(43.39% 0.184 266.1)
XYZxyz(10.8107, 7.5138, 44.0517)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142B4 #B49321
analogous
#218BB4 #2142B4 #4A21B4
triadic
#2142B4 #B42142 #42B421
tetradic
#2142B4 #B4218B #B49321 #21B44A
square
#2142B4 #B4218B #B49321 #21B44A
split-complementary
#2142B4 #B44A21 #8BB421
monochromatic
#0E1C4D #182F80 #2142B4 #385CDA #6B87E4

Accessibility & contrast

On white

8.39
#2142B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2142B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142B4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142B4#FFFFFF#000000##FFFFFF
##2142B41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2142b4;
/* rgb */ color: rgb(33, 66, 180);
/* oklch */ color: oklch(43.4% 0.184 266.1);
Tailwind
colors: {
  custom: {
    50: '#7776cb',
    500: '#2142b4',
    950: '#000000',
  },
}
SCSS
$custom: #2142b4;
$custom-light: #7776cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2142b4",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 226.531,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43394,
    "c": 0.18433,
    "h": 266.1
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#2142B4
secondary
#CAB467
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2142B4

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

Preview Lab → · Contrast checker → · Palette generator →

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