#2142C3#2142C3

#2142C3 is a dark, highly saturated blue. Relative luminance 0.082; OKLCH L 44.8% C 0.204 H 266.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2142C3
RGBrgb(33, 66, 195)
HSLhsl(228, 71%, 45%)
HSVhsv(228, 83%, 76%)
CMYKcmyk(83.1%, 66.2%, 0%, 23.5%)
CIE-LABlab(34.31, 36.89, -70.13)
CIE-LCHlch(34.31, 79.24, 297.74°)
OKLaboklab(44.81% -0.0131 -0.2032)
OKLCHoklch(44.81% 0.204 266.3)
XYZxyz(12.4223, 8.1584, 52.5392)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142C3 #C3A221
analogous
#2193C3 #2142C3 #5121C3
triadic
#2142C3 #C32142 #42C321
tetradic
#2142C3 #C32193 #C3A221 #21C351
square
#2142C3 #C32193 #C3A221 #21C351
split-complementary
#2142C3 #C35121 #93C321
monochromatic
#0F1F5A #18308F #2142C3 #4262DF #778EE8

Accessibility & contrast

On white

7.98
#2142C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2142C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142C3
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142C3#FFFFFF#000000##FFFFFF
##2142C31.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2142c3;
/* rgb */ color: rgb(33, 66, 195);
/* oklch */ color: oklch(44.8% 0.204 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a76d6',
    500: '#2142c3',
    950: '#000000',
  },
}
SCSS
$custom: #2142c3;
$custom-light: #7a76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2142c3",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 227.778,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44812,
    "c": 0.2036,
    "h": 266.3
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#2142C3
secondary
#CFBC71
accent
#C93AEE
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2142C3

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

Preview Lab → · Contrast checker → · Palette generator →

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