#0D1F4B#0D1F4B

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

Color values

HEX#0D1F4B
RGBrgb(13, 31, 75)
HSLhsl(223, 70%, 17%)
HSVhsv(223, 83%, 29%)
CMYKcmyk(82.7%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.07, 11.02, -29.46)
CIE-LCHlch(13.07, 31.45, 290.50°)
OKLaboklab(25.45% -0.0084 -0.0848)
OKLCHoklch(25.45% 0.085 264.4)
XYZxyz(1.9255, 1.5733, 6.8574)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F4B #4B390D
analogous
#0D3E4B #0D1F4B #1A0D4B
triadic
#0D1F4B #4B0D1F #1F4B0D
tetradic
#0D1F4B #4B0D3E #4B390D #0D4B1A
square
#0D1F4B #4B0D3E #4B390D #0D4B1A
split-complementary
#0D1F4B #4B1A0D #3E4B0D
monochromatic
#050B1A #050B1A #0D1F4B #16357F #1F4AB3

Accessibility & contrast

On white

15.97
#0D1F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1F4B
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F4B#FFFFFF#000000##FFFFFF
##0D1F4B1.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d1f4b;
/* rgb */ color: rgb(13, 31, 75);
/* oklch */ color: oklch(25.4% 0.085 264.4);
Tailwind
colors: {
  custom: {
    50: '#565a7e',
    500: '#0d1f4b',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f4b;
$custom-light: #565a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f4b",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 222.581,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25449,
    "c": 0.08523,
    "h": 264.4
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#0D1F4B
secondary
#866C2E
accent
#B93BED
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0D1F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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