#0D1240#0D1240

#0D1240 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.087 H 272.0°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#0D1240
RGBrgb(13, 18, 64)
HSLhsl(234, 66%, 15%)
HSVhsv(234, 80%, 25%)
CMYKcmyk(79.7%, 71.9%, 0%, 74.9%)
CIE-LABlab(8.02, 16.25, -29.97)
CIE-LCHlch(8.02, 34.09, 298.47°)
OKLaboklab(21.36% 0.003 -0.0865)
OKLCHoklch(21.36% 0.087 272)
XYZxyz(1.3074, 0.8882, 4.9520)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1240 #403B0D
analogous
#0D2B40 #0D1240 #220D40
triadic
#0D1240 #400D12 #12400D
tetradic
#0D1240 #400D2B #403B0D #0D4022
square
#0D1240 #400D2B #403B0D #0D4022
split-complementary
#0D1240 #40220D #2B400D
monochromatic
#050719 #050719 #0D1240 #172073 #222FA6

Accessibility & contrast

On white

17.83
#0D1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1240
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1240#FFFFFF#000000##FFFFFF
##0D12401.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0d1240;
/* rgb */ color: rgb(13, 18, 64);
/* oklch */ color: oklch(21.4% 0.087 272.0);
Tailwind
colors: {
  custom: {
    50: '#544f75',
    500: '#0d1240',
    950: '#000000',
  },
}
SCSS
$custom: #0d1240;
$custom-light: #544f75;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1240",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 234.118,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2136,
    "c": 0.08659,
    "h": 272
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#0D1240
secondary
#7C742D
accent
#D83FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D1240

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

Preview Lab → · Contrast checker → · Palette generator →

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