#0D1F51#0D1F51

#0D1F51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.095 H 265.3°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#0D1F51
RGBrgb(13, 31, 81)
HSLhsl(224, 72%, 18%)
HSVhsv(224, 84%, 32%)
CMYKcmyk(84%, 61.7%, 0%, 68.2%)
CIE-LABlab(13.59, 13.67, -32.72)
CIE-LCHlch(13.59, 35.46, 292.67°)
OKLaboklab(26.01% -0.0078 -0.0944)
OKLCHoklch(26.01% 0.095 265.3)
XYZxyz(2.1406, 1.6594, 7.9905)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F51 #513F0D
analogous
#0D4151 #0D1F51 #1D0D51
triadic
#0D1F51 #510D1F #1F510D
tetradic
#0D1F51 #510D41 #513F0D #0D511D
square
#0D1F51 #510D41 #513F0D #0D511D
split-complementary
#0D1F51 #511D0D #41510D
monochromatic
#040A1A #050B1C #0D1F51 #153386 #1E47BA

Accessibility & contrast

On white

15.77
#0D1F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1F51
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F51#FFFFFF#000000##FFFFFF
##0D1F511.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0d1f51;
/* rgb */ color: rgb(13, 31, 81);
/* oklch */ color: oklch(26.0% 0.095 265.3);
Tailwind
colors: {
  custom: {
    50: '#585a82',
    500: '#0d1f51',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f51;
$custom-light: #585a82;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f51",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 224.118,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26006,
    "c": 0.09474,
    "h": 265.3
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#0D1F51
secondary
#8C732E
accent
#BF39EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0D1F51

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

Preview Lab → · Contrast checker → · Palette generator →

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