#2142B2#2142B2

#2142B2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.182 H 266.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2142B2
RGBrgb(33, 66, 178)
HSLhsl(226, 69%, 41%)
HSVhsv(226, 81%, 70%)
CMYKcmyk(81.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(32.77, 30.51, -62.63)
CIE-LCHlch(32.77, 69.66, 295.97°)
OKLaboklab(43.21% -0.0126 -0.1813)
OKLCHoklch(43.21% 0.182 266)
XYZxyz(10.6085, 7.4329, 42.9864)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142B2 #B29121
analogous
#218BB2 #2142B2 #4921B2
triadic
#2142B2 #B22142 #42B221
tetradic
#2142B2 #B2218B #B29121 #21B249
square
#2142B2 #B2218B #B29121 #21B249
split-complementary
#2142B2 #B24921 #8BB221
monochromatic
#0E1C4B #172F7E #2142B2 #365CDA #6A86E3

Accessibility & contrast

On white

8.44
#2142B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2142B2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142B2#FFFFFF#000000##FFFFFF
##2142B21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2142b2;
/* rgb */ color: rgb(33, 66, 178);
/* oklch */ color: oklch(43.2% 0.182 266.0);
Tailwind
colors: {
  custom: {
    50: '#7676ca',
    500: '#2142b2',
    950: '#000000',
  },
}
SCSS
$custom: #2142b2;
$custom-light: #7676ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2142b2",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 226.345,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43209,
    "c": 0.1817,
    "h": 266
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#2142B2
secondary
#C9B366
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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