#0D204D#0D204D

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

Color values

HEX#0D204D
RGBrgb(13, 32, 77)
HSLhsl(222, 71%, 18%)
HSVhsv(222, 83%, 30%)
CMYKcmyk(83.1%, 58.4%, 0%, 69.8%)
CIE-LABlab(13.56, 11.13, -30.04)
CIE-LCHlch(13.56, 32.04, 290.34°)
OKLaboklab(25.87% -0.0091 -0.0865)
OKLCHoklch(25.87% 0.087 264)
XYZxyz(2.0216, 1.6542, 7.2325)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D204D #4D3A0D
analogous
#0D404D #0D204D #1A0D4D
triadic
#0D204D #4D0D20 #204D0D
tetradic
#0D204D #4D0D40 #4D3A0D #0D4D1A
square
#0D204D #4D0D40 #4D3A0D #0D4D1A
split-complementary
#0D204D #4D1A0D #404D0D
monochromatic
#040B1A #040B1A #0D204D #163681 #1F4CB6

Accessibility & contrast

On white

15.78
#0D204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0D204D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D204D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D204D#FFFFFF#000000##FFFFFF
##0D204D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02264F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0d204d;
/* rgb */ color: rgb(13, 32, 77);
/* oklch */ color: oklch(25.9% 0.087 264.0);
Tailwind
colors: {
  custom: {
    50: '#575a7f',
    500: '#0d204d',
    950: '#000000',
  },
}
SCSS
$custom: #0d204d;
$custom-light: #575a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0d204d",
  "rgb": {
    "r": 13,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 222.188,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25874,
    "c": 0.08698,
    "h": 264
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#0D204D
secondary
#886D2E
accent
#B83AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0D204D

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

Preview Lab → · Contrast checker → · Palette generator →

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