#0D1245#0D1245

#0D1245 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.094 H 271.6°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#0D1245
RGBrgb(13, 18, 69)
HSLhsl(235, 68%, 16%)
HSVhsv(235, 81%, 27%)
CMYKcmyk(81.2%, 73.9%, 0%, 72.9%)
CIE-LABlab(8.55, 18.37, -32.65)
CIE-LCHlch(8.55, 37.46, 299.37°)
OKLaboklab(21.91% 0.0026 -0.0944)
OKLCHoklch(21.91% 0.094 271.6)
XYZxyz(1.4561, 0.9477, 5.7353)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1245 #45400D
analogous
#0D2E45 #0D1245 #240D45
triadic
#0D1245 #450D12 #12450D
tetradic
#0D1245 #450D2E #45400D #0D4524
square
#0D1245 #450D2E #45400D #0D4524
split-complementary
#0D1245 #45240D #2E450D
monochromatic
#05071A #05071A #0D1245 #171F78 #202DAC

Accessibility & contrast

On white

17.65
#0D1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1245
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1245#FFFFFF#000000##FFFFFF
##0D12451.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001644
Tritanopia (blue-blind)
#002029
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0d1245;
/* rgb */ color: rgb(13, 18, 69);
/* oklch */ color: oklch(21.9% 0.094 271.6);
Tailwind
colors: {
  custom: {
    50: '#564f79',
    500: '#0d1245',
    950: '#000000',
  },
}
SCSS
$custom: #0d1245;
$custom-light: #564f79;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1245",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 234.643,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21905,
    "c": 0.09441,
    "h": 271.6
  },
  "luminance": 0.00948
}

Semantic roles & 50–950 ramp

primary
#0D1245
secondary
#80792D
accent
#DC3DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0D1245

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

Preview Lab → · Contrast checker → · Palette generator →

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