#0D0F52#0D0F52

#0D0F52 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.117 H 271.2°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#0D0F52
RGBrgb(13, 15, 82)
HSLhsl(238, 73%, 19%)
HSVhsv(238, 84%, 32%)
CMYKcmyk(84.1%, 81.7%, 0%, 67.8%)
CIE-LABlab(9.29, 25.72, -40.45)
CIE-LCHlch(9.29, 47.94, 302.44°)
OKLaboklab(22.89% 0.0024 -0.1171)
OKLCHoklch(22.89% 0.117 271.2)
XYZxyz(1.8593, 1.0362, 8.0830)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0F52 #52500D
analogous
#0D3152 #0D0F52 #2D0D52
triadic
#0D0F52 #520D0F #0F520D
tetradic
#0D0F52 #520D31 #52500D #0D522D
square
#0D0F52 #520D31 #52500D #0D522D
split-complementary
#0D0F52 #522D0D #31520D
monochromatic
#04051A #05051D #0D0F52 #151987 #1E22BC

Accessibility & contrast

On white

17.40
#0D0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0D0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0F52
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0F52#FFFFFF#000000##FFFFFF
##0D0F521.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d0f52;
/* rgb */ color: rgb(13, 15, 82);
/* oklch */ color: oklch(22.9% 0.117 271.2);
Tailwind
colors: {
  custom: {
    50: '#5a4e83',
    500: '#0d0f52',
    950: '#000000',
  },
}
SCSS
$custom: #0d0f52;
$custom-light: #5a4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0f52",
  "rgb": {
    "r": 13,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 238.261,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22891,
    "c": 0.11715,
    "h": 271.2
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#0D0F52
secondary
#8D8A2E
accent
#EA38EF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0D0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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