#0D2152#0D2152

#0D2152 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.093 H 264.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#0D2152
RGBrgb(13, 33, 82)
HSLhsl(223, 73%, 19%)
HSVhsv(223, 84%, 32%)
CMYKcmyk(84.1%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.30, 12.58, -32.24)
CIE-LCHlch(14.30, 34.61, 291.32°)
OKLaboklab(26.57% -0.0094 -0.093)
OKLCHoklch(26.57% 0.093 264.2)
XYZxyz(2.2323, 1.7822, 8.2074)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2152 #523E0D
analogous
#0D4352 #0D2152 #1B0D52
triadic
#0D2152 #520D21 #21520D
tetradic
#0D2152 #520D43 #523E0D #0D521B
square
#0D2152 #520D43 #523E0D #0D521B
split-complementary
#0D2152 #521B0D #43520D
monochromatic
#040B1A #050C1D #0D2152 #153687 #1E4CBC

Accessibility & contrast

On white

15.48
#0D2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0D2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2152
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2152#FFFFFF#000000##FFFFFF
##0D21521.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0d2152;
/* rgb */ color: rgb(13, 33, 82);
/* oklch */ color: oklch(26.6% 0.093 264.2);
Tailwind
colors: {
  custom: {
    50: '#585b83',
    500: '#0d2152',
    950: '#000000',
  },
}
SCSS
$custom: #0d2152;
$custom-light: #585b83;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2152",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 222.609,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26571,
    "c": 0.09345,
    "h": 264.2
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#0D2152
secondary
#8D712E
accent
#BA38EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0D2152

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

Preview Lab → · Contrast checker → · Palette generator →

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