#0D1542#0D1542

#0D1542 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.085 H 270.2°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#0D1542
RGBrgb(13, 21, 66)
HSLhsl(231, 67%, 15%)
HSVhsv(231, 80%, 26%)
CMYKcmyk(80.3%, 68.2%, 0%, 74.1%)
CIE-LABlab(9.12, 14.80, -29.60)
CIE-LCHlch(9.12, 33.10, 296.57°)
OKLaboklab(22.23% 0.0003 -0.0854)
OKLCHoklch(22.23% 0.085 270.2)
XYZxyz(1.4172, 1.0151, 5.2744)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1542 #423A0D
analogous
#0D2F42 #0D1542 #1F0D42
triadic
#0D1542 #420D15 #15420D
tetradic
#0D1542 #420D2F #423A0D #0D421F
square
#0D1542 #420D2F #423A0D #0D421F
split-complementary
#0D1542 #421F0D #2F420D
monochromatic
#05081A #05081A #0D1542 #172575 #2136A8

Accessibility & contrast

On white

17.46
#0D1542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0D1542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1542
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1542#FFFFFF#000000##FFFFFF
##0D15421.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#002029
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d1542;
/* rgb */ color: rgb(13, 21, 66);
/* oklch */ color: oklch(22.2% 0.085 270.2);
Tailwind
colors: {
  custom: {
    50: '#555277',
    500: '#0d1542',
    950: '#000000',
  },
}
SCSS
$custom: #0d1542;
$custom-light: #555277;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1542",
  "rgb": {
    "r": 13,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 230.943,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22229,
    "c": 0.08542,
    "h": 270.2
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#0D1542
secondary
#7E712D
accent
#D03EEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D1542

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

Preview Lab → · Contrast checker → · Palette generator →

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