#0D1254#0D1254

#0D1254 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.117 H 270.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#0D1254
RGBrgb(13, 18, 84)
HSLhsl(236, 73%, 19%)
HSVhsv(236, 85%, 33%)
CMYKcmyk(84.5%, 78.6%, 0%, 67.1%)
CIE-LABlab(10.24, 24.50, -40.24)
CIE-LCHlch(10.24, 47.12, 301.33°)
OKLaboklab(23.64% 0.0006 -0.1165)
OKLCHoklch(23.64% 0.117 270.3)
XYZxyz(1.9820, 1.1581, 8.5049)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1254 #544F0D
analogous
#0D3654 #0D1254 #2C0D54
triadic
#0D1254 #540D12 #12540D
tetradic
#0D1254 #540D36 #544F0D #0D542C
square
#0D1254 #540D36 #544F0D #0D542C
split-complementary
#0D1254 #542C0D #36540D
monochromatic
#04061A #05071F #0D1254 #151D89 #1D29BE

Accessibility & contrast

On white

17.05
#0D1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1254
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1254#FFFFFF#000000##FFFFFF
##0D12541.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F56
Deuteranopia (green-blind)
#001853
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0d1254;
/* rgb */ color: rgb(13, 18, 84);
/* oklch */ color: oklch(23.6% 0.117 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5085',
    500: '#0d1254',
    950: '#000000',
  },
}
SCSS
$custom: #0d1254;
$custom-light: #5b5085;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1254",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 235.775,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23643,
    "c": 0.11655,
    "h": 270.3
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#0D1254
secondary
#8F882E
accent
#E338F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0D1254

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

Preview Lab → · Contrast checker → · Palette generator →

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