#0D163F#0D163F

#0D163F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.079 H 269.5°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#0D163F
RGBrgb(13, 22, 63)
HSLhsl(229, 66%, 15%)
HSVhsv(229, 79%, 25%)
CMYKcmyk(79.4%, 65.1%, 0%, 75.3%)
CIE-LABlab(9.14, 12.71, -27.44)
CIE-LCHlch(9.14, 30.24, 294.86°)
OKLaboklab(22.16% -0.0007 -0.079)
OKLCHoklch(22.16% 0.079 269.5)
XYZxyz(1.3498, 1.0181, 4.8270)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D163F #3F360D
analogous
#0D2F3F #0D163F #1D0D3F
triadic
#0D163F #3F0D16 #163F0D
tetradic
#0D163F #3F0D2F #3F360D #0D3F1D
square
#0D163F #3F0D2F #3F360D #0D3F1D
split-complementary
#0D163F #3F1D0D #2F3F0D
monochromatic
#050919 #050919 #0D163F #172872 #2239A4

Accessibility & contrast

On white

17.45
#0D163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D163F
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D163F#FFFFFF#000000##FFFFFF
##0D163F1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d163f;
/* rgb */ color: rgb(13, 22, 63);
/* oklch */ color: oklch(22.2% 0.079 269.5);
Tailwind
colors: {
  custom: {
    50: '#545274',
    500: '#0d163f',
    950: '#000000',
  },
}
SCSS
$custom: #0d163f;
$custom-light: #545274;
$custom-dark: #000000;
JSON
{
  "hex": "#0d163f",
  "rgb": {
    "r": 13,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 229.2,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22159,
    "c": 0.07904,
    "h": 269.5
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#0D163F
secondary
#7B6D2D
accent
#CA3FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D163F

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

Preview Lab → · Contrast checker → · Palette generator →

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