#0D1940#0D1940

#0D1940 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.0% C 0.076 H 267.2°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#0D1940
RGBrgb(13, 25, 64)
HSLhsl(226, 66%, 15%)
HSVhsv(226, 80%, 25%)
CMYKcmyk(79.7%, 60.9%, 0%, 74.9%)
CIE-LABlab(10.19, 10.80, -26.45)
CIE-LCHlch(10.19, 28.57, 292.21°)
OKLaboklab(22.97% -0.0037 -0.0761)
OKLCHoklch(22.97% 0.076 267.2)
XYZxyz(1.4387, 1.1508, 4.9958)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1940 #40340D
analogous
#0D3340 #0D1940 #1A0D40
triadic
#0D1940 #400D19 #19400D
tetradic
#0D1940 #400D33 #40340D #0D401A
square
#0D1940 #400D33 #40340D #0D401A
split-complementary
#0D1940 #401A0D #33400D
monochromatic
#050A19 #050A19 #0D1940 #172D73 #2241A6

Accessibility & contrast

On white

17.07
#0D1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0D1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1940
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1940#FFFFFF#000000##FFFFFF
##0D19401.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0d1940;
/* rgb */ color: rgb(13, 25, 64);
/* oklch */ color: oklch(23.0% 0.076 267.2);
Tailwind
colors: {
  custom: {
    50: '#545575',
    500: '#0d1940',
    950: '#000000',
  },
}
SCSS
$custom: #0d1940;
$custom-light: #545575;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1940",
  "rgb": {
    "r": 13,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 225.882,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22974,
    "c": 0.07617,
    "h": 267.2
  },
  "luminance": 0.01151
}

Semantic roles & 50–950 ramp

primary
#0D1940
secondary
#7C692D
accent
#C13FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D1940

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

Preview Lab → · Contrast checker → · Palette generator →

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