#0D0838#0D0838

#0D0838 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.5% C 0.088 H 278.2°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#0D0838
RGBrgb(13, 8, 56)
HSLhsl(246, 75%, 13%)
HSVhsv(246, 86%, 22%)
CMYKcmyk(76.8%, 85.7%, 0%, 78%)
CIE-LABlab(4.92, 18.15, -29.26)
CIE-LCHlch(4.92, 34.43, 301.81°)
OKLaboklab(18.48% 0.0125 -0.087)
OKLCHoklch(18.48% 0.088 278.2)
XYZxyz(0.9664, 0.5447, 3.7948)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0838 #333808
analogous
#081B38 #0D0838 #250838
triadic
#0D0838 #380D08 #08380D
tetradic
#0D0838 #38081B #333808 #083825
square
#0D0838 #38081B #333808 #083825
split-complementary
#0D0838 #382508 #1B3808
monochromatic
#06041B #06041B #0D0838 #19106E #2617A3

Accessibility & contrast

On white

18.94
#0D0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0D0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0838
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0838#FFFFFF#000000##FFFFFF
##0D08381.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#000F37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0d0838;
/* rgb */ color: rgb(13, 8, 56);
/* oklch */ color: oklch(18.5% 0.088 278.2);
Tailwind
colors: {
  custom: {
    50: '#52496f',
    500: '#0d0838',
    950: '#000000',
  },
}
SCSS
$custom: #0d0838;
$custom-light: #52496f;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0838",
  "rgb": {
    "r": 13,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 246.25,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.18478,
    "c": 0.08793,
    "h": 278.2
  },
  "luminance": 0.00545
}

Semantic roles & 50–950 ramp

primary
#0D0838
secondary
#6E7725
accent
#F236DE
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #0D0838

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

Preview Lab → · Contrast checker → · Palette generator →

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