#0D2151#0D2151

#0D2151 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.092 H 264.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#0D2151
RGBrgb(13, 33, 81)
HSLhsl(222, 72%, 18%)
HSVhsv(222, 84%, 32%)
CMYKcmyk(84%, 59.3%, 0%, 68.2%)
CIE-LABlab(14.21, 12.14, -31.70)
CIE-LCHlch(14.21, 33.95, 290.96°)
OKLaboklab(26.48% -0.0095 -0.0914)
OKLCHoklch(26.48% 0.092 264.1)
XYZxyz(2.1945, 1.7671, 8.0084)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2151 #513D0D
analogous
#0D4351 #0D2151 #1B0D51
triadic
#0D2151 #510D21 #21510D
tetradic
#0D2151 #510D43 #513D0D #0D511B
square
#0D2151 #510D43 #513D0D #0D511B
split-complementary
#0D2151 #511B0D #43510D
monochromatic
#040B1A #050C1C #0D2151 #153686 #1E4CBA

Accessibility & contrast

On white

15.52
#0D2151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0D2151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2151
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2151#FFFFFF#000000##FFFFFF
##0D21511.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0d2151;
/* rgb */ color: rgb(13, 33, 81);
/* oklch */ color: oklch(26.5% 0.092 264.1);
Tailwind
colors: {
  custom: {
    50: '#585b82',
    500: '#0d2151',
    950: '#000000',
  },
}
SCSS
$custom: #0d2151;
$custom-light: #585b82;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2151",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 222.353,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26479,
    "c": 0.09188,
    "h": 264.1
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#0D2151
secondary
#8C702E
accent
#B939EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0D2151

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

Preview Lab → · Contrast checker → · Palette generator →

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