#0D2158#0D2158

#0D2158 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.103 H 265.0°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#0D2158
RGBrgb(13, 33, 88)
HSLhsl(224, 74%, 20%)
HSVhsv(224, 85%, 35%)
CMYKcmyk(85.2%, 62.5%, 0%, 65.5%)
CIE-LABlab(14.83, 15.22, -35.43)
CIE-LCHlch(14.83, 38.56, 293.25°)
OKLaboklab(27.14% -0.009 -0.1023)
OKLCHoklch(27.14% 0.103 265)
XYZxyz(2.4707, 1.8776, 9.4628)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2158 #58440D
analogous
#0D4758 #0D2158 #1F0D58
triadic
#0D2158 #580D21 #21580D
tetradic
#0D2158 #580D47 #58440D #0D581F
square
#0D2158 #580D47 #58440D #0D581F
split-complementary
#0D2158 #581F0D #47580D
monochromatic
#040A1B #050D23 #0D2158 #15358D #1D49C3

Accessibility & contrast

On white

15.27
#0D2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0D2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2158
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2158#FFFFFF#000000##FFFFFF
##0D21581.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0d2158;
/* rgb */ color: rgb(13, 33, 88);
/* oklch */ color: oklch(27.1% 0.103 265.0);
Tailwind
colors: {
  custom: {
    50: '#5a5b88',
    500: '#0d2158',
    950: '#000000',
  },
}
SCSS
$custom: #0d2158;
$custom-light: #5a5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2158",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 224,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27138,
    "c": 0.10275,
    "h": 265
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#0D2158
secondary
#93782E
accent
#BF37F1
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0D2158

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

Preview Lab → · Contrast checker → · Palette generator →

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