#0D1242#0D1242

#0D1242 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.090 H 271.8°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#0D1242
RGBrgb(13, 18, 66)
HSLhsl(234, 67%, 15%)
HSVhsv(234, 80%, 26%)
CMYKcmyk(80.3%, 72.7%, 0%, 74.1%)
CIE-LABlab(8.23, 17.10, -31.05)
CIE-LCHlch(8.23, 35.45, 298.85°)
OKLaboklab(21.58% 0.0028 -0.0897)
OKLCHoklch(21.58% 0.09 271.8)
XYZxyz(1.3653, 0.9114, 5.2572)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1242 #423D0D
analogous
#0D2C42 #0D1242 #220D42
triadic
#0D1242 #420D12 #12420D
tetradic
#0D1242 #420D2C #423D0D #0D4222
square
#0D1242 #420D2C #423D0D #0D4222
split-complementary
#0D1242 #42220D #2C420D
monochromatic
#05071A #05071A #0D1242 #172075 #212EA8

Accessibility & contrast

On white

17.76
#0D1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0D1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1242
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1242#FFFFFF#000000##FFFFFF
##0D12421.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#001F28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0d1242;
/* rgb */ color: rgb(13, 18, 66);
/* oklch */ color: oklch(21.6% 0.090 271.8);
Tailwind
colors: {
  custom: {
    50: '#554f77',
    500: '#0d1242',
    950: '#000000',
  },
}
SCSS
$custom: #0d1242;
$custom-light: #554f77;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1242",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 234.34,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21576,
    "c": 0.08974,
    "h": 271.8
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#0D1242
secondary
#7E762D
accent
#DA3EEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0D1242

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

Preview Lab → · Contrast checker → · Palette generator →

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