#0D0C40#0D0C40

#0D0C40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.095 H 274.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#0D0C40
RGBrgb(13, 12, 64)
HSLhsl(241, 68%, 15%)
HSVhsv(241, 81%, 25%)
CMYKcmyk(79.7%, 81.2%, 0%, 74.9%)
CIE-LABlab(6.49, 20.21, -32.48)
CIE-LCHlch(6.49, 38.25, 301.89°)
OKLaboklab(20.17% 0.0077 -0.0944)
OKLCHoklch(20.17% 0.095 274.6)
XYZxyz(1.2226, 0.7186, 4.9238)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0C40 #3F400C
analogous
#0C2540 #0D0C40 #270C40
triadic
#0D0C40 #400D0C #0C400D
tetradic
#0D0C40 #400C25 #3F400C #0C4027
square
#0D0C40 #400C25 #3F400C #0C4027
split-complementary
#0D0C40 #40270C #25400C
monochromatic
#05051A #05051A #0D0C40 #171674 #221FA7

Accessibility & contrast

On white

18.36
#0D0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0D0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0C40
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0C40#FFFFFF#000000##FFFFFF
##0D0C401.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0d0c40;
/* rgb */ color: rgb(13, 12, 64);
/* oklch */ color: oklch(20.2% 0.095 274.6);
Tailwind
colors: {
  custom: {
    50: '#554b75',
    500: '#0d0c40',
    950: '#000000',
  },
}
SCSS
$custom: #0d0c40;
$custom-light: #554b75;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0c40",
  "rgb": {
    "r": 13,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 241.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20172,
    "c": 0.09473,
    "h": 274.6
  },
  "luminance": 0.00719
}

Semantic roles & 50–950 ramp

primary
#0D0C40
secondary
#7B7C2C
accent
#EB3DE8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0D0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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