#0D183A#0D183A

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

Color values

HEX#0D183A
RGBrgb(13, 24, 58)
HSLhsl(225, 63%, 14%)
HSVhsv(225, 78%, 23%)
CMYKcmyk(77.6%, 58.6%, 0%, 77.3%)
CIE-LABlab(9.35, 8.93, -23.52)
CIE-LCHlch(9.35, 25.16, 290.78°)
OKLaboklab(22.18% -0.0033 -0.0675)
OKLCHoklch(22.18% 0.068 267.2)
XYZxyz(1.2561, 1.0442, 4.1375)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D183A #3A2F0D
analogous
#0D2F3A #0D183A #190D3A
triadic
#0D183A #3A0D18 #183A0D
tetradic
#0D183A #3A0D2F #3A2F0D #0D3A19
square
#0D183A #3A0D2F #3A2F0D #0D3A19
split-complementary
#0D183A #3A190D #2F3A0D
monochromatic
#060A19 #060A19 #0D183A #182D6C #23419E

Accessibility & contrast

On white

17.37
#0D183A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0D183A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D183A
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D183A#FFFFFF#000000##FFFFFF
##0D183A1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d183a;
/* rgb */ color: rgb(13, 24, 58);
/* oklch */ color: oklch(22.2% 0.068 267.2);
Tailwind
colors: {
  custom: {
    50: '#525470',
    500: '#0d183a',
    950: '#000000',
  },
}
SCSS
$custom: #0d183a;
$custom-light: #525470;
$custom-dark: #000000;
JSON
{
  "hex": "#0d183a",
  "rgb": {
    "r": 13,
    "g": 24,
    "b": 58
  },
  "hsl": {
    "h": 225.333,
    "s": 63.38,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22181,
    "c": 0.06758,
    "h": 267.2
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#0D183A
secondary
#76642D
accent
#BE41E6
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0D183A

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

Preview Lab → · Contrast checker → · Palette generator →

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