#0D1F4F#0D1F4F

#0D1F4F is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.092 H 265.0°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#0D1F4F
RGBrgb(13, 31, 79)
HSLhsl(224, 72%, 18%)
HSVhsv(224, 84%, 31%)
CMYKcmyk(83.5%, 60.8%, 0%, 69%)
CIE-LABlab(13.41, 12.79, -31.64)
CIE-LCHlch(13.41, 34.13, 292.01°)
OKLaboklab(25.82% -0.008 -0.0912)
OKLCHoklch(25.82% 0.092 265)
XYZxyz(2.0668, 1.6298, 7.6013)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F4F #4F3D0D
analogous
#0D404F #0D1F4F #1C0D4F
triadic
#0D1F4F #4F0D1F #1F4F0D
tetradic
#0D1F4F #4F0D40 #4F3D0D #0D4F1C
square
#0D1F4F #4F0D40 #4F3D0D #0D4F1C
split-complementary
#0D1F4F #4F1C0D #404F0D
monochromatic
#040A1A #040A1A #0D1F4F #163484 #1E48B8

Accessibility & contrast

On white

15.84
#0D1F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0D1F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F4F
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F4F#FFFFFF#000000##FFFFFF
##0D1F4F1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d1f4f;
/* rgb */ color: rgb(13, 31, 79);
/* oklch */ color: oklch(25.8% 0.092 265.0);
Tailwind
colors: {
  custom: {
    50: '#585a81',
    500: '#0d1f4f',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f4f;
$custom-light: #585a81;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f4f",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 223.636,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25817,
    "c": 0.0916,
    "h": 265
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#0D1F4F
secondary
#8A712E
accent
#BD39EE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0D1F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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