#0D2251#0D2251

#0D2251 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.090 H 263.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#0D2251
RGBrgb(13, 34, 81)
HSLhsl(221, 72%, 18%)
HSVhsv(221, 84%, 32%)
CMYKcmyk(84%, 58%, 0%, 68.2%)
CIE-LABlab(14.53, 11.38, -31.19)
CIE-LCHlch(14.53, 33.20, 290.05°)
OKLaboklab(26.72% -0.0104 -0.0898)
OKLCHoklch(26.72% 0.09 263.4)
XYZxyz(2.2227, 1.8234, 8.0178)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2251 #513C0D
analogous
#0D4451 #0D2251 #1A0D51
triadic
#0D2251 #510D22 #22510D
tetradic
#0D2251 #510D44 #513C0D #0D511A
square
#0D2251 #510D44 #513C0D #0D511A
split-complementary
#0D2251 #511A0D #44510D
monochromatic
#040B1A #050C1C #0D2251 #153886 #1E4EBA

Accessibility & contrast

On white

15.39
#0D2251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D2251
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2251#FFFFFF#000000##FFFFFF
##0D22511.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022853
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0d2251;
/* rgb */ color: rgb(13, 34, 81);
/* oklch */ color: oklch(26.7% 0.090 263.4);
Tailwind
colors: {
  custom: {
    50: '#585c82',
    500: '#0d2251',
    950: '#000000',
  },
}
SCSS
$custom: #0d2251;
$custom-light: #585c82;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2251",
  "rgb": {
    "r": 13,
    "g": 34,
    "b": 81
  },
  "hsl": {
    "h": 221.471,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2672,
    "c": 0.09045,
    "h": 263.4
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#0D2251
secondary
#8C6F2E
accent
#B739EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0D2251

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

Preview Lab → · Contrast checker → · Palette generator →

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