#2138A8#2138A8

#2138A8 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.180 H 267.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2138A8
RGBrgb(33, 56, 168)
HSLhsl(230, 67%, 39%)
HSVhsv(230, 80%, 66%)
CMYKcmyk(80.4%, 66.7%, 0%, 34.1%)
CIE-LABlab(29.36, 33.29, -62.25)
CIE-LCHlch(29.36, 70.60, 298.14°)
OKLaboklab(40.41% -0.007 -0.1803)
OKLCHoklch(40.41% 0.18 267.8)
XYZxyz(9.1068, 5.9778, 37.7121)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A8 #A89121
analogous
#217CA8 #2138A8 #4E21A8
triadic
#2138A8 #A82138 #38A821
tetradic
#2138A8 #A8217C #A89121 #21A84E
square
#2138A8 #A8217C #A89121 #21A84E
split-complementary
#2138A8 #A84E21 #7CA821
monochromatic
#0D1642 #172775 #2138A8 #304CD6 #6378E0

Accessibility & contrast

On white

9.56
#2138A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2138A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A8
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A8#FFFFFF#000000##FFFFFF
##2138A81.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2138a8;
/* rgb */ color: rgb(33, 56, 168);
/* oklch */ color: oklch(40.4% 0.180 267.8);
Tailwind
colors: {
  custom: {
    50: '#746ec3',
    500: '#2138a8',
    950: '#000000',
  },
}
SCSS
$custom: #2138a8;
$custom-light: #746ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a8",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 229.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40414,
    "c": 0.1804,
    "h": 267.8
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#2138A8
secondary
#C5B45F
accent
#CD3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2138A8

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

Preview Lab → · Contrast checker → · Palette generator →

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