#0D0840#0D0840

#0D0840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.5% C 0.100 H 275.9°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#0D0840
RGBrgb(13, 8, 64)
HSLhsl(245, 78%, 14%)
HSVhsv(245, 88%, 25%)
CMYKcmyk(79.7%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.68, 22.24, -33.80)
CIE-LCHlch(5.68, 40.46, 303.35°)
OKLaboklab(19.49% 0.0103 -0.099)
OKLCHoklch(19.49% 0.1 275.9)
XYZxyz(1.1779, 0.6293, 4.9089)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0840 #3B4008
analogous
#081F40 #0D0840 #290840
triadic
#0D0840 #400D08 #08400D
tetradic
#0D0840 #40081F #3B4008 #084029
square
#0D0840 #40081F #3B4008 #084029
split-complementary
#0D0840 #402908 #1F4008
monochromatic
#06031B #06031B #0D0840 #180F76 #2316AD

Accessibility & contrast

On white

18.65
#0D0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0D0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0840
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0840#FFFFFF#000000##FFFFFF
##0D08401.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00103F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0d0840;
/* rgb */ color: rgb(13, 8, 64);
/* oklch */ color: oklch(19.5% 0.100 275.9);
Tailwind
colors: {
  custom: {
    50: '#554975',
    500: '#0d0840',
    950: '#000000',
  },
}
SCSS
$custom: #0d0840;
$custom-light: #554975;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0840",
  "rgb": {
    "r": 13,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 245.357,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19486,
    "c": 0.09957,
    "h": 275.9
  },
  "luminance": 0.00629
}

Semantic roles & 50–950 ramp

primary
#0D0840
secondary
#777E25
accent
#F434E3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0D0840

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

Preview Lab → · Contrast checker → · Palette generator →

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