#0D1F4D#0D1F4D

#0D1F4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.088 H 264.7°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#0D1F4D
RGBrgb(13, 31, 77)
HSLhsl(223, 71%, 18%)
HSVhsv(223, 83%, 30%)
CMYKcmyk(83.1%, 59.7%, 0%, 69.8%)
CIE-LABlab(13.24, 11.90, -30.56)
CIE-LCHlch(13.24, 32.79, 291.28°)
OKLaboklab(25.63% -0.0082 -0.088)
OKLCHoklch(25.63% 0.088 264.7)
XYZxyz(1.9950, 1.6011, 7.2236)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F4D #4D3B0D
analogous
#0D3F4D #0D1F4D #1B0D4D
triadic
#0D1F4D #4D0D1F #1F4D0D
tetradic
#0D1F4D #4D0D3F #4D3B0D #0D4D1B
square
#0D1F4D #4D0D3F #4D3B0D #0D4D1B
split-complementary
#0D1F4D #4D1B0D #3F4D0D
monochromatic
#040B1A #040B1A #0D1F4D #163481 #1F49B6

Accessibility & contrast

On white

15.91
#0D1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0D1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F4D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F4D#FFFFFF#000000##FFFFFF
##0D1F4D1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d1f4d;
/* rgb */ color: rgb(13, 31, 77);
/* oklch */ color: oklch(25.6% 0.088 264.7);
Tailwind
colors: {
  custom: {
    50: '#575a7f',
    500: '#0d1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f4d;
$custom-light: #575a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f4d",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 223.125,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25632,
    "c": 0.08843,
    "h": 264.7
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#0D1F4D
secondary
#886F2E
accent
#BB3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0D1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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