#0D0C4D#0D0C4D

#0D0C4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.113 H 272.4°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#0D0C4D
RGBrgb(13, 12, 77)
HSLhsl(241, 73%, 17%)
HSVhsv(241, 84%, 30%)
CMYKcmyk(83.1%, 84.4%, 0%, 69.8%)
CIE-LABlab(7.99, 25.72, -39.16)
CIE-LCHlch(7.99, 46.85, 303.30°)
OKLaboklab(21.78% 0.0048 -0.1133)
OKLCHoklch(21.78% 0.113 272.4)
XYZxyz(1.6366, 0.8842, 7.1041)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0C4D #4C4D0C
analogous
#0C2C4D #0D0C4D #2D0C4D
triadic
#0D0C4D #4D0D0C #0C4D0D
tetradic
#0D0C4D #4D0C2C #4C4D0C #0C4D2D
square
#0D0C4D #4D0C2C #4C4D0C #0C4D2D
split-complementary
#0D0C4D #4D2D0C #2C4D0C
monochromatic
#04041A #04041A #0D0C4D #161482 #1F1DB7

Accessibility & contrast

On white

17.85
#0D0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0D0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0C4D
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0C4D#FFFFFF#000000##FFFFFF
##0D0C4D1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00144C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0d0c4d;
/* rgb */ color: rgb(13, 12, 77);
/* oklch */ color: oklch(21.8% 0.113 272.4);
Tailwind
colors: {
  custom: {
    50: '#594c80',
    500: '#0d0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #0d0c4d;
$custom-light: #594c80;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0c4d",
  "rgb": {
    "r": 13,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 240.923,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.21784,
    "c": 0.11344,
    "h": 272.4
  },
  "luminance": 0.00884
}

Semantic roles & 50–950 ramp

primary
#0D0C4D
secondary
#87892C
accent
#F038ED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0D0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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