#0D1F40#0D1F40

#0D1F40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.067 H 261.4°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#0D1F40
RGBrgb(13, 31, 64)
HSLhsl(219, 66%, 15%)
HSVhsv(219, 80%, 25%)
CMYKcmyk(79.7%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.19, 6.12, -23.22)
CIE-LCHlch(12.19, 24.01, 284.76°)
OKLaboklab(24.5% -0.0101 -0.0665)
OKLCHoklch(24.5% 0.067 261.4)
XYZxyz(1.5810, 1.4355, 5.0433)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F40 #402E0D
analogous
#0D3840 #0D1F40 #150D40
triadic
#0D1F40 #400D1F #1F400D
tetradic
#0D1F40 #400D38 #402E0D #0D4015
square
#0D1F40 #400D38 #402E0D #0D4015
split-complementary
#0D1F40 #40150D #38400D
monochromatic
#050C19 #050C19 #0D1F40 #173873 #2250A6

Accessibility & contrast

On white

16.31
#0D1F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0D1F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F40
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F40#FFFFFF#000000##FFFFFF
##0D1F401.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#051E3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0d1f40;
/* rgb */ color: rgb(13, 31, 64);
/* oklch */ color: oklch(24.5% 0.067 261.4);
Tailwind
colors: {
  custom: {
    50: '#535a75',
    500: '#0d1f40',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f40;
$custom-light: #535a75;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f40",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 218.824,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24501,
    "c": 0.06723,
    "h": 261.4
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#0D1F40
secondary
#7C602D
accent
#AD3FE9
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0D1F40

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

Preview Lab → · Contrast checker → · Palette generator →

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