#0D1252#0D1252

#0D1252 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.114 H 270.5°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#0D1252
RGBrgb(13, 18, 82)
HSLhsl(236, 73%, 19%)
HSVhsv(236, 84%, 32%)
CMYKcmyk(84.1%, 78%, 0%, 67.8%)
CIE-LABlab(10.01, 23.70, -39.27)
CIE-LCHlch(10.01, 45.87, 301.12°)
OKLaboklab(23.4% 0.0009 -0.1137)
OKLCHoklch(23.4% 0.114 270.5)
XYZxyz(1.9048, 1.1272, 8.0982)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1252 #524D0D
analogous
#0D3452 #0D1252 #2A0D52
triadic
#0D1252 #520D12 #12520D
tetradic
#0D1252 #520D34 #524D0D #0D522A
square
#0D1252 #520D34 #524D0D #0D522A
split-complementary
#0D1252 #522A0D #34520D
monochromatic
#04061A #05061D #0D1252 #151E87 #1E29BC

Accessibility & contrast

On white

17.14
#0D1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0D1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1252
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1252#FFFFFF#000000##FFFFFF
##0D12521.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0d1252;
/* rgb */ color: rgb(13, 18, 82);
/* oklch */ color: oklch(23.4% 0.114 270.5);
Tailwind
colors: {
  custom: {
    50: '#5a5083',
    500: '#0d1252',
    950: '#000000',
  },
}
SCSS
$custom: #0d1252;
$custom-light: #5a5083;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1252",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 235.652,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23404,
    "c": 0.1137,
    "h": 270.5
  },
  "luminance": 0.01127
}

Semantic roles & 50–950 ramp

primary
#0D1252
secondary
#8D862E
accent
#E238EF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0D1252

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

Preview Lab → · Contrast checker → · Palette generator →

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