#0D0F4F#0D0F4F

#0D0F4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.113 H 271.5°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#0D0F4F
RGBrgb(13, 15, 79)
HSLhsl(238, 72%, 18%)
HSVhsv(238, 84%, 31%)
CMYKcmyk(83.5%, 81%, 0%, 69%)
CIE-LABlab(8.92, 24.55, -39.00)
CIE-LCHlch(8.92, 46.08, 302.19°)
OKLaboklab(22.52% 0.003 -0.1129)
OKLCHoklch(22.52% 0.113 271.5)
XYZxyz(1.7476, 0.9915, 7.4949)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0F4F #4F4D0D
analogous
#0D304F #0D0F4F #2C0D4F
triadic
#0D0F4F #4F0D0F #0F4F0D
tetradic
#0D0F4F #4F0D30 #4F4D0D #0D4F2C
square
#0D0F4F #4F0D30 #4F4D0D #0D4F2C
split-complementary
#0D0F4F #4F2C0D #304F0D
monochromatic
#04051A #04051A #0D0F4F #161984 #1E23B8

Accessibility & contrast

On white

17.52
#0D0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0D0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0F4F
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0F4F#FFFFFF#000000##FFFFFF
##0D0F4F1.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00164E
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0d0f4f;
/* rgb */ color: rgb(13, 15, 79);
/* oklch */ color: oklch(22.5% 0.113 271.5);
Tailwind
colors: {
  custom: {
    50: '#594e81',
    500: '#0d0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #0d0f4f;
$custom-light: #594e81;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0f4f",
  "rgb": {
    "r": 13,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 238.182,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22519,
    "c": 0.11294,
    "h": 271.5
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#0D0F4F
secondary
#8A872E
accent
#E939EE
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #0D0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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