#2140A8#2140A8

#2140A8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.171 H 266.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2140A8
RGBrgb(33, 64, 168)
HSLhsl(226, 67%, 39%)
HSVhsv(226, 80%, 66%)
CMYKcmyk(80.4%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.38, 28.01, -58.93)
CIE-LCHlch(31.38, 65.25, 295.42°)
OKLaboklab(41.91% -0.0115 -0.1704)
OKLCHoklch(41.91% 0.171 266.1)
XYZxyz(9.5260, 6.8162, 37.8518)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140A8 #A88921
analogous
#2184A8 #2140A8 #4521A8
triadic
#2140A8 #A82140 #40A821
tetradic
#2140A8 #A82184 #A88921 #21A845
square
#2140A8 #A82184 #A88921 #21A845
split-complementary
#2140A8 #A84521 #84A821
monochromatic
#0D1942 #172D75 #2140A8 #3056D6 #6380E0

Accessibility & contrast

On white

8.89
#2140A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2140A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140A8
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140A8#FFFFFF#000000##FFFFFF
##2140A81.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2140a8;
/* rgb */ color: rgb(33, 64, 168);
/* oklch */ color: oklch(41.9% 0.171 266.1);
Tailwind
colors: {
  custom: {
    50: '#7474c3',
    500: '#2140a8',
    950: '#000000',
  },
}
SCSS
$custom: #2140a8;
$custom-light: #7474c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2140a8",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 226.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41911,
    "c": 0.17084,
    "h": 266.1
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

primary
#2140A8
secondary
#C5AE5F
accent
#C23EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2140A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2140A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva