#0D1840#0D1840

#0D1840 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.078 H 268.0°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#0D1840
RGBrgb(13, 24, 64)
HSLhsl(227, 66%, 15%)
HSVhsv(227, 80%, 25%)
CMYKcmyk(79.7%, 62.5%, 0%, 74.9%)
CIE-LABlab(9.87, 11.58, -26.97)
CIE-LCHlch(9.87, 29.35, 293.24°)
OKLaboklab(22.73% -0.0027 -0.0776)
OKLCHoklch(22.73% 0.078 268)
XYZxyz(1.4177, 1.1089, 4.9888)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1840 #40350D
analogous
#0D3140 #0D1840 #1C0D40
triadic
#0D1840 #400D18 #18400D
tetradic
#0D1840 #400D31 #40350D #0D401C
square
#0D1840 #400D31 #40350D #0D401C
split-complementary
#0D1840 #401C0D #31400D
monochromatic
#050A19 #050A19 #0D1840 #172B73 #223EA6

Accessibility & contrast

On white

17.19
#0D1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0D1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1840
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1840#FFFFFF#000000##FFFFFF
##0D18401.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0d1840;
/* rgb */ color: rgb(13, 24, 64);
/* oklch */ color: oklch(22.7% 0.078 268.0);
Tailwind
colors: {
  custom: {
    50: '#545475',
    500: '#0d1840',
    950: '#000000',
  },
}
SCSS
$custom: #0d1840;
$custom-light: #545475;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1840",
  "rgb": {
    "r": 13,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 227.059,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22731,
    "c": 0.07768,
    "h": 268
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#0D1840
secondary
#7C6B2D
accent
#C43FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D1840

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

Preview Lab → · Contrast checker → · Palette generator →

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