#0D1F52#0D1F52

#0D1F52 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.096 H 265.4°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#0D1F52
RGBrgb(13, 31, 82)
HSLhsl(224, 73%, 19%)
HSVhsv(224, 84%, 32%)
CMYKcmyk(84.1%, 62.2%, 0%, 67.8%)
CIE-LABlab(13.68, 14.11, -33.26)
CIE-LCHlch(13.68, 36.12, 292.99°)
OKLaboklab(26.1% -0.0078 -0.096)
OKLCHoklch(26.1% 0.096 265.4)
XYZxyz(2.1784, 1.6745, 8.1894)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F52 #52400D
analogous
#0D4152 #0D1F52 #1D0D52
triadic
#0D1F52 #520D1F #1F520D
tetradic
#0D1F52 #520D41 #52400D #0D521D
square
#0D1F52 #520D41 #52400D #0D521D
split-complementary
#0D1F52 #521D0D #41520D
monochromatic
#040A1A #050B1D #0D1F52 #153387 #1E47BC

Accessibility & contrast

On white

15.73
#0D1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0D1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F52
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F52#FFFFFF#000000##FFFFFF
##0D1F521.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0d1f52;
/* rgb */ color: rgb(13, 31, 82);
/* oklch */ color: oklch(26.1% 0.096 265.4);
Tailwind
colors: {
  custom: {
    50: '#585a83',
    500: '#0d1f52',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f52;
$custom-light: #585a83;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f52",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 224.348,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26102,
    "c": 0.0963,
    "h": 265.4
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#0D1F52
secondary
#8D742E
accent
#C038EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0D1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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