#2142B3#2142B3

#2142B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.183 H 266.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2142B3
RGBrgb(33, 66, 179)
HSLhsl(226, 69%, 42%)
HSVhsv(226, 82%, 70%)
CMYKcmyk(81.6%, 63.1%, 0%, 29.8%)
CIE-LABlab(32.86, 30.89, -63.08)
CIE-LCHlch(32.86, 70.23, 296.09°)
OKLaboklab(43.3% -0.0127 -0.1826)
OKLCHoklch(43.3% 0.183 266)
XYZxyz(10.7092, 7.4732, 43.5171)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142B3 #B39221
analogous
#218BB3 #2142B3 #4921B3
triadic
#2142B3 #B32142 #42B321
tetradic
#2142B3 #B3218B #B39221 #21B349
square
#2142B3 #B3218B #B39221 #21B349
split-complementary
#2142B3 #B34921 #8BB321
monochromatic
#0E1C4C #172F7F #2142B3 #375CDA #6B86E4

Accessibility & contrast

On white

8.42
#2142B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2142B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142B3
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142B3#FFFFFF#000000##FFFFFF
##2142B31.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2142b3;
/* rgb */ color: rgb(33, 66, 179);
/* oklch */ color: oklch(43.3% 0.183 266.0);
Tailwind
colors: {
  custom: {
    50: '#7676cb',
    500: '#2142b3',
    950: '#000000',
  },
}
SCSS
$custom: #2142b3;
$custom-light: #7676cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2142b3",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 226.438,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43301,
    "c": 0.18301,
    "h": 266
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2142B3

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

Preview Lab → · Contrast checker → · Palette generator →

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