#0D124E#0D124E

#0D124E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.108 H 270.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#0D124E
RGBrgb(13, 18, 78)
HSLhsl(235, 71%, 18%)
HSVhsv(235, 83%, 31%)
CMYKcmyk(83.3%, 76.9%, 0%, 69.4%)
CIE-LABlab(9.55, 22.09, -37.28)
CIE-LCHlch(9.55, 43.33, 300.66°)
OKLaboklab(22.93% 0.0015 -0.1079)
OKLCHoklch(22.93% 0.108 270.8)
XYZxyz(1.7570, 1.0680, 7.3198)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D124E #4E490D
analogous
#0D324E #0D124E #290D4E
triadic
#0D124E #4E0D12 #124E0D
tetradic
#0D124E #4E0D32 #4E490D #0D4E29
square
#0D124E #4E0D32 #4E490D #0D4E29
split-complementary
#0D124E #4E290D #324E0D
monochromatic
#04061A #04061A #0D124E #161E82 #1E2AB7

Accessibility & contrast

On white

17.30
#0D124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0D124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D124E
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D124E#FFFFFF#000000##FFFFFF
##0D124E1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#00174D
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0d124e;
/* rgb */ color: rgb(13, 18, 78);
/* oklch */ color: oklch(22.9% 0.108 270.8);
Tailwind
colors: {
  custom: {
    50: '#595080',
    500: '#0d124e',
    950: '#000000',
  },
}
SCSS
$custom: #0d124e;
$custom-light: #595080;
$custom-dark: #000000;
JSON
{
  "hex": "#0d124e",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 235.385,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22932,
    "c": 0.10791,
    "h": 270.8
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#0D124E
secondary
#89822E
accent
#E03AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0D124E

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

Preview Lab → · Contrast checker → · Palette generator →

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