#0D1F4A#0D1F4A

#0D1F4A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.084 H 264.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#0D1F4A
RGBrgb(13, 31, 74)
HSLhsl(222, 70%, 17%)
HSVhsv(222, 82%, 29%)
CMYKcmyk(82.4%, 58.1%, 0%, 71%)
CIE-LABlab(12.98, 10.57, -28.90)
CIE-LCHlch(12.98, 30.78, 290.09°)
OKLaboklab(25.36% -0.0085 -0.0832)
OKLCHoklch(25.36% 0.084 264.2)
XYZxyz(1.8916, 1.5597, 6.6786)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F4A #4A380D
analogous
#0D3E4A #0D1F4A #1A0D4A
triadic
#0D1F4A #4A0D1F #1F4A0D
tetradic
#0D1F4A #4A0D3E #4A380D #0D4A1A
square
#0D1F4A #4A0D3E #4A380D #0D4A1A
split-complementary
#0D1F4A #4A1A0D #3E4A0D
monochromatic
#050B1A #050B1A #0D1F4A #16357E #1F4BB2

Accessibility & contrast

On white

16.01
#0D1F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1F4A
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F4A#FFFFFF#000000##FFFFFF
##0D1F4A1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03244C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d1f4a;
/* rgb */ color: rgb(13, 31, 74);
/* oklch */ color: oklch(25.4% 0.084 264.2);
Tailwind
colors: {
  custom: {
    50: '#565a7d',
    500: '#0d1f4a',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f4a;
$custom-light: #565a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f4a",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 222.295,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25359,
    "c": 0.08362,
    "h": 264.2
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#0D1F4A
secondary
#856B2E
accent
#B83BED
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0D1F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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