#0D183F#0D183F

#0D183F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.076 H 267.9°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#0D183F
RGBrgb(13, 24, 63)
HSLhsl(227, 66%, 15%)
HSVhsv(227, 79%, 25%)
CMYKcmyk(79.4%, 61.9%, 0%, 75.3%)
CIE-LABlab(9.78, 11.14, -26.40)
CIE-LCHlch(9.78, 28.66, 292.88°)
OKLaboklab(22.64% -0.0027 -0.076)
OKLCHoklch(22.64% 0.076 267.9)
XYZxyz(1.3895, 1.0976, 4.8403)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D183F #3F340D
analogous
#0D313F #0D183F #1B0D3F
triadic
#0D183F #3F0D18 #183F0D
tetradic
#0D183F #3F0D31 #3F340D #0D3F1B
square
#0D183F #3F0D31 #3F340D #0D3F1B
split-complementary
#0D183F #3F1B0D #313F0D
monochromatic
#050A19 #050A19 #0D183F #172B72 #223FA4

Accessibility & contrast

On white

17.22
#0D183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0D183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D183F
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D183F#FFFFFF#000000##FFFFFF
##0D183F1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0d183f;
/* rgb */ color: rgb(13, 24, 63);
/* oklch */ color: oklch(22.6% 0.076 267.9);
Tailwind
colors: {
  custom: {
    50: '#535474',
    500: '#0d183f',
    950: '#000000',
  },
}
SCSS
$custom: #0d183f;
$custom-light: #535474;
$custom-dark: #000000;
JSON
{
  "hex": "#0d183f",
  "rgb": {
    "r": 13,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 226.8,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22637,
    "c": 0.07602,
    "h": 267.9
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#0D183F
secondary
#7B6A2D
accent
#C33FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D183F

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

Preview Lab → · Contrast checker → · Palette generator →

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