#0D1246#0D1246

#0D1246 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.096 H 271.5°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#0D1246
RGBrgb(13, 18, 70)
HSLhsl(235, 69%, 16%)
HSVhsv(235, 81%, 27%)
CMYKcmyk(81.4%, 74.3%, 0%, 72.5%)
CIE-LABlab(8.66, 18.79, -33.17)
CIE-LCHlch(8.66, 38.13, 299.53°)
OKLaboklab(22.02% 0.0025 -0.0959)
OKLCHoklch(22.02% 0.096 271.5)
XYZxyz(1.4874, 0.9602, 5.9001)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1246 #46410D
analogous
#0D2F46 #0D1246 #250D46
triadic
#0D1246 #460D12 #12460D
tetradic
#0D1246 #460D2F #46410D #0D4625
square
#0D1246 #460D2F #46410D #0D4625
split-complementary
#0D1246 #46250D #2F460D
monochromatic
#05071A #05071A #0D1246 #171F7A #202DAD

Accessibility & contrast

On white

17.62
#0D1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1246
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1246#FFFFFF#000000##FFFFFF
##0D12461.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0d1246;
/* rgb */ color: rgb(13, 18, 70);
/* oklch */ color: oklch(22.0% 0.096 271.5);
Tailwind
colors: {
  custom: {
    50: '#564f7a',
    500: '#0d1246',
    950: '#000000',
  },
}
SCSS
$custom: #0d1246;
$custom-light: #564f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1246",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 234.737,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22017,
    "c": 0.09594,
    "h": 271.5
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#0D1246
secondary
#817A2D
accent
#DC3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0D1246

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

Preview Lab → · Contrast checker → · Palette generator →

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