#0D0540#0D0540

#0D0540 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.103 H 276.8°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#0D0540
RGBrgb(13, 5, 64)
HSLhsl(248, 86%, 14%)
HSVhsv(248, 92%, 25%)
CMYKcmyk(79.7%, 92.2%, 0%, 74.9%)
CIE-LABlab(5.10, 23.70, -34.76)
CIE-LCHlch(5.10, 42.07, 304.29°)
OKLaboklab(18.95% 0.0123 -0.1026)
OKLCHoklch(18.95% 0.103 276.8)
XYZxyz(1.1454, 0.5642, 4.8980)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0540 #384005
analogous
#051A40 #0D0540 #2A0540
triadic
#0D0540 #400D05 #05400D
tetradic
#0D0540 #40051A #384005 #05402A
square
#0D0540 #40051A #384005 #05402A
split-complementary
#0D0540 #402A05 #1A4005
monochromatic
#06021C #06021C #0D0540 #190979 #240EB2

Accessibility & contrast

On white

18.87
#0D0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D0540
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0540#FFFFFF#000000##FFFFFF
##0D05401.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0d0540;
/* rgb */ color: rgb(13, 5, 64);
/* oklch */ color: oklch(19.0% 0.103 276.8);
Tailwind
colors: {
  custom: {
    50: '#554776',
    500: '#0d0540',
    950: '#000000',
  },
}
SCSS
$custom: #0d0540;
$custom-light: #554776;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0540",
  "rgb": {
    "r": 13,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 248.136,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18954,
    "c": 0.10338,
    "h": 276.8
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#0D0540
secondary
#738120
accent
#FC2CE0
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0D0540

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

Preview Lab → · Contrast checker → · Palette generator →

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