#0D163E#0D163E

#0D163E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.077 H 269.4°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#0D163E
RGBrgb(13, 22, 62)
HSLhsl(229, 65%, 15%)
HSVhsv(229, 79%, 24%)
CMYKcmyk(79%, 64.5%, 0%, 75.7%)
CIE-LABlab(9.05, 12.27, -26.87)
CIE-LCHlch(9.05, 29.54, 294.54°)
OKLaboklab(22.06% -0.0008 -0.0774)
OKLCHoklch(22.06% 0.077 269.4)
XYZxyz(1.3221, 1.0071, 4.6812)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D163E #3E350D
analogous
#0D2E3E #0D163E #1D0D3E
triadic
#0D163E #3E0D16 #163E0D
tetradic
#0D163E #3E0D2E #3E350D #0D3E1D
square
#0D163E #3E0D2E #3E350D #0D3E1D
split-complementary
#0D163E #3E1D0D #2E3E0D
monochromatic
#050919 #050919 #0D163E #182871 #223AA3

Accessibility & contrast

On white

17.48
#0D163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D163E
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D163E#FFFFFF#000000##FFFFFF
##0D163E1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d163e;
/* rgb */ color: rgb(13, 22, 62);
/* oklch */ color: oklch(22.1% 0.077 269.4);
Tailwind
colors: {
  custom: {
    50: '#535274',
    500: '#0d163e',
    950: '#000000',
  },
}
SCSS
$custom: #0d163e;
$custom-light: #535274;
$custom-dark: #000000;
JSON
{
  "hex": "#0d163e",
  "rgb": {
    "r": 13,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 228.98,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22061,
    "c": 0.07739,
    "h": 269.4
  },
  "luminance": 0.01007
}

Semantic roles & 50–950 ramp

primary
#0D163E
secondary
#7A6C2D
accent
#C940E8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D163E

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

Preview Lab → · Contrast checker → · Palette generator →

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