#0D0842#0D0842

#0D0842 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.102 H 275.4°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#0D0842
RGBrgb(13, 8, 66)
HSLhsl(245, 78%, 15%)
HSVhsv(245, 88%, 26%)
CMYKcmyk(80.3%, 87.9%, 0%, 74.1%)
CIE-LABlab(5.89, 23.21, -34.88)
CIE-LCHlch(5.89, 41.89, 303.64°)
OKLaboklab(19.74% 0.0097 -0.1019)
OKLCHoklch(19.74% 0.102 275.4)
XYZxyz(1.2359, 0.6525, 5.2140)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0842 #3D4208
analogous
#082042 #0D0842 #2A0842
triadic
#0D0842 #420D08 #08420D
tetradic
#0D0842 #420820 #3D4208 #08422A
square
#0D0842 #420820 #3D4208 #08422A
split-complementary
#0D0842 #422A08 #204208
monochromatic
#05031B #05031B #0D0842 #180F79 #2315AF

Accessibility & contrast

On white

18.57
#0D0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D0842
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0842#FFFFFF#000000##FFFFFF
##0D08421.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001041
Tritanopia (blue-blind)
#001925
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0d0842;
/* rgb */ color: rgb(13, 8, 66);
/* oklch */ color: oklch(19.7% 0.102 275.4);
Tailwind
colors: {
  custom: {
    50: '#564977',
    500: '#0d0842',
    950: '#000000',
  },
}
SCSS
$custom: #0d0842;
$custom-light: #564977;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0842",
  "rgb": {
    "r": 13,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 245.172,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.19745,
    "c": 0.1024,
    "h": 275.4
  },
  "luminance": 0.00653
}

Semantic roles & 50–950 ramp

primary
#0D0842
secondary
#798025
accent
#F533E4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0D0842

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

Preview Lab → · Contrast checker → · Palette generator →

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