#0D0F40#0D0F40

#0D0F40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.091 H 273.4°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#0D0F40
RGBrgb(13, 15, 64)
HSLhsl(238, 66%, 15%)
HSVhsv(238, 80%, 25%)
CMYKcmyk(79.7%, 76.6%, 0%, 74.9%)
CIE-LABlab(7.20, 18.39, -31.31)
CIE-LCHlch(7.20, 36.31, 300.42°)
OKLaboklab(20.74% 0.0054 -0.0906)
OKLCHoklch(20.74% 0.091 273.4)
XYZxyz(1.2619, 0.7973, 4.9369)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0F40 #403E0D
analogous
#0D2840 #0D0F40 #240D40
triadic
#0D0F40 #400D0F #0F400D
tetradic
#0D0F40 #400D28 #403E0D #0D4024
square
#0D0F40 #400D28 #403E0D #0D4024
split-complementary
#0D0F40 #40240D #28400D
monochromatic
#050619 #050619 #0D0F40 #171B73 #2227A6

Accessibility & contrast

On white

18.11
#0D0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0D0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0F40
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0F40#FFFFFF#000000##FFFFFF
##0D0F401.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0d0f40;
/* rgb */ color: rgb(13, 15, 64);
/* oklch */ color: oklch(20.7% 0.091 273.4);
Tailwind
colors: {
  custom: {
    50: '#554d75',
    500: '#0d0f40',
    950: '#000000',
  },
}
SCSS
$custom: #0d0f40;
$custom-light: #554d75;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0f40",
  "rgb": {
    "r": 13,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 237.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2074,
    "c": 0.09079,
    "h": 273.4
  },
  "luminance": 0.00797
}

Semantic roles & 50–950 ramp

primary
#0D0F40
secondary
#7C782D
accent
#E23FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0D0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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