#0D1C4F#0D1C4F

#0D1C4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.096 H 266.7°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#0D1C4F
RGBrgb(13, 28, 79)
HSLhsl(226, 72%, 18%)
HSVhsv(226, 84%, 31%)
CMYKcmyk(83.5%, 64.6%, 0%, 69%)
CIE-LABlab(12.48, 15.08, -33.15)
CIE-LCHlch(12.48, 36.42, 294.46°)
OKLaboklab(25.12% -0.0055 -0.0957)
OKLCHoklch(25.12% 0.096 266.7)
XYZxyz(1.9920, 1.4804, 7.5764)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1C4F #4F400D
analogous
#0D3D4F #0D1C4F #1F0D4F
triadic
#0D1C4F #4F0D1C #1C4F0D
tetradic
#0D1C4F #4F0D3D #4F400D #0D4F1F
square
#0D1C4F #4F0D3D #4F400D #0D4F1F
split-complementary
#0D1C4F #4F1F0D #3D4F0D
monochromatic
#04091A #04091A #0D1C4F #162F84 #1E41B8

Accessibility & contrast

On white

16.20
#0D1C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0D1C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1C4F
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1C4F#FFFFFF#000000##FFFFFF
##0D1C4F1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0d1c4f;
/* rgb */ color: rgb(13, 28, 79);
/* oklch */ color: oklch(25.1% 0.096 266.7);
Tailwind
colors: {
  custom: {
    50: '#585781',
    500: '#0d1c4f',
    950: '#000000',
  },
}
SCSS
$custom: #0d1c4f;
$custom-light: #585781;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1c4f",
  "rgb": {
    "r": 13,
    "g": 28,
    "b": 79
  },
  "hsl": {
    "h": 226.364,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25121,
    "c": 0.0959,
    "h": 266.7
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#0D1C4F
secondary
#8A752E
accent
#C539EE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0D1C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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