#0D2040#0D2040

#0D2040 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.8% C 0.066 H 260.2°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#0D2040
RGBrgb(13, 32, 64)
HSLhsl(218, 66%, 15%)
HSVhsv(218, 80%, 25%)
CMYKcmyk(79.7%, 50%, 0%, 74.9%)
CIE-LABlab(12.54, 5.35, -22.67)
CIE-LCHlch(12.54, 23.29, 283.28°)
OKLaboklab(24.77% -0.0112 -0.0648)
OKLCHoklch(24.77% 0.066 260.2)
XYZxyz(1.6076, 1.4886, 5.0521)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2040 #402D0D
analogous
#0D3940 #0D2040 #130D40
triadic
#0D2040 #400D20 #20400D
tetradic
#0D2040 #400D39 #402D0D #0D4013
square
#0D2040 #400D39 #402D0D #0D4013
split-complementary
#0D2040 #40130D #39400D
monochromatic
#050D19 #050D19 #0D2040 #173973 #2253A6

Accessibility & contrast

On white

16.18
#0D2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0D2040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2040
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2040#FFFFFF#000000##FFFFFF
##0D20401.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0d2040;
/* rgb */ color: rgb(13, 32, 64);
/* oklch */ color: oklch(24.8% 0.066 260.2);
Tailwind
colors: {
  custom: {
    50: '#535a75',
    500: '#0d2040',
    950: '#000000',
  },
}
SCSS
$custom: #0d2040;
$custom-light: #535a75;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2040",
  "rgb": {
    "r": 13,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 217.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24766,
    "c": 0.0658,
    "h": 260.2
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#0D2040
secondary
#7C5E2D
accent
#AA3FE9
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0D2040

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

Preview Lab → · Contrast checker → · Palette generator →

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