#0D0C51#0D0C51

#0D0C51 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.3% C 0.119 H 271.9°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#0D0C51
RGBrgb(13, 12, 81)
HSLhsl(241, 74%, 18%)
HSVhsv(241, 85%, 32%)
CMYKcmyk(84%, 85.2%, 0%, 68.2%)
CIE-LABlab(8.50, 27.22, -41.07)
CIE-LCHlch(8.50, 49.27, 303.54°)
OKLaboklab(22.3% 0.0039 -0.1189)
OKLCHoklch(22.3% 0.119 271.9)
XYZxyz(1.7822, 0.9424, 7.8710)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0C51 #50510C
analogous
#0C2D51 #0D0C51 #2F0C51
triadic
#0D0C51 #510D0C #0C510D
tetradic
#0D0C51 #510C2D #50510C #0C512F
square
#0D0C51 #510C2D #50510C #0C512F
split-complementary
#0D0C51 #512F0C #2D510C
monochromatic
#04041B #04041C #0D0C51 #161486 #1E1CBC

Accessibility & contrast

On white

17.67
#0D0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0D0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0C51
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0C51#FFFFFF#000000##FFFFFF
##0D0C511.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001550
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0d0c51;
/* rgb */ color: rgb(13, 12, 81);
/* oklch */ color: oklch(22.3% 0.119 271.9);
Tailwind
colors: {
  custom: {
    50: '#5a4c83',
    500: '#0d0c51',
    950: '#000000',
  },
}
SCSS
$custom: #0d0c51;
$custom-light: #5a4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0c51",
  "rgb": {
    "r": 13,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 240.87,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22298,
    "c": 0.11894,
    "h": 271.9
  },
  "luminance": 0.00943
}

Semantic roles & 50–950 ramp

primary
#0D0C51
secondary
#8B8C2C
accent
#F137EE
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0D0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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