#0D214E#0D214E

#0D214E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.087 H 263.5°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#0D214E
RGBrgb(13, 33, 78)
HSLhsl(222, 71%, 18%)
HSVhsv(222, 83%, 31%)
CMYKcmyk(83.3%, 57.7%, 0%, 69.4%)
CIE-LABlab(13.96, 10.81, -30.07)
CIE-LCHlch(13.96, 31.95, 289.78°)
OKLaboklab(26.21% -0.0098 -0.0866)
OKLCHoklch(26.21% 0.087 263.5)
XYZxyz(2.0845, 1.7231, 7.4290)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D214E #4E3A0D
analogous
#0D424E #0D214E #190D4E
triadic
#0D214E #4E0D21 #214E0D
tetradic
#0D214E #4E0D42 #4E3A0D #0D4E19
square
#0D214E #4E0D42 #4E3A0D #0D4E19
split-complementary
#0D214E #4E190D #424E0D
monochromatic
#040B1A #040B1A #0D214E #163782 #1E4DB7

Accessibility & contrast

On white

15.62
#0D214E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0D214E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D214E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D214E#FFFFFF#000000##FFFFFF
##0D214E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032750
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0d214e;
/* rgb */ color: rgb(13, 33, 78);
/* oklch */ color: oklch(26.2% 0.087 263.5);
Tailwind
colors: {
  custom: {
    50: '#575b80',
    500: '#0d214e',
    950: '#000000',
  },
}
SCSS
$custom: #0d214e;
$custom-light: #575b80;
$custom-dark: #000000;
JSON
{
  "hex": "#0d214e",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 78
  },
  "hsl": {
    "h": 221.538,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26207,
    "c": 0.08713,
    "h": 263.5
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#0D214E
secondary
#896D2E
accent
#B73AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0D214E

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

Preview Lab → · Contrast checker → · Palette generator →

#0D214E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva