#0D2142#0D2142

#0D2142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.2% C 0.068 H 259.9°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#0D2142
RGBrgb(13, 33, 66)
HSLhsl(217, 67%, 15%)
HSVhsv(217, 80%, 26%)
CMYKcmyk(80.3%, 50%, 0%, 74.1%)
CIE-LABlab(13.02, 5.47, -23.29)
CIE-LCHlch(13.02, 23.92, 283.23°)
OKLaboklab(25.19% -0.0119 -0.0666)
OKLCHoklch(25.19% 0.068 259.9)
XYZxyz(1.6929, 1.5664, 5.3663)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2142 #422E0D
analogous
#0D3B42 #0D2142 #130D42
triadic
#0D2142 #420D21 #21420D
tetradic
#0D2142 #420D3B #422E0D #0D4213
square
#0D2142 #420D3B #422E0D #0D4213
split-complementary
#0D2142 #42130D #3B420D
monochromatic
#050D1A #050D1A #0D2142 #173B75 #2154A8

Accessibility & contrast

On white

15.99
#0D2142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0D2142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2142
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2142#FFFFFF#000000##FFFFFF
##0D21421.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112443
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d2142;
/* rgb */ color: rgb(13, 33, 66);
/* oklch */ color: oklch(25.2% 0.068 259.9);
Tailwind
colors: {
  custom: {
    50: '#545b76',
    500: '#0d2142',
    950: '#000000',
  },
}
SCSS
$custom: #0d2142;
$custom-light: #545b76;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2142",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 217.358,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2519,
    "c": 0.06767,
    "h": 259.9
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#0D2142
secondary
#7E5F2D
accent
#A93EEA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0D2142

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

Preview Lab → · Contrast checker → · Palette generator →

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