#2142A1#2142A1

#2142A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 265.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2142A1
RGBrgb(33, 66, 161)
HSLhsl(225, 66%, 38%)
HSVhsv(225, 80%, 63%)
CMYKcmyk(79.5%, 59%, 0%, 36.9%)
CIE-LABlab(31.33, 23.95, -54.81)
CIE-LCHlch(31.33, 59.81, 293.60°)
OKLaboklab(41.69% -0.0129 -0.1583)
OKLCHoklch(41.69% 0.159 265.3)
XYZxyz(9.0062, 6.7919, 34.5476)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142A1 #A18021
analogous
#2182A1 #2142A1 #4021A1
triadic
#2142A1 #A12142 #42A121
tetradic
#2142A1 #A12182 #A18021 #21A140
square
#2142A1 #A12182 #A18021 #21A140
split-complementary
#2142A1 #A14021 #82A121
monochromatic
#0C183B #172D6E #2142A1 #2C57D4 #5E7FDE

Accessibility & contrast

On white

8.90
#2142A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2142A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142A1
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142A1#FFFFFF#000000##FFFFFF
##2142A11.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2142a1;
/* rgb */ color: rgb(33, 66, 161);
/* oklch */ color: oklch(41.7% 0.159 265.3);
Tailwind
colors: {
  custom: {
    50: '#7275be',
    500: '#2142a1',
    950: '#000000',
  },
}
SCSS
$custom: #2142a1;
$custom-light: #7275be;
$custom-dark: #000000;
JSON
{
  "hex": "#2142a1",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 224.531,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41686,
    "c": 0.15886,
    "h": 265.3
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

primary
#2142A1
secondary
#C3A85B
accent
#BD3FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2142A1

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

Preview Lab → · Contrast checker → · Palette generator →

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