#0D123E#0D123E

#0D123E is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.083 H 272.1°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#0D123E
RGBrgb(13, 18, 62)
HSLhsl(234, 65%, 15%)
HSVhsv(234, 79%, 24%)
CMYKcmyk(79%, 71%, 0%, 75.7%)
CIE-LABlab(7.82, 15.39, -28.88)
CIE-LCHlch(7.82, 32.72, 298.06°)
OKLaboklab(21.15% 0.0031 -0.0833)
OKLCHoklch(21.15% 0.083 272.1)
XYZxyz(1.2515, 0.8659, 4.6577)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D123E #3E390D
analogous
#0D2A3E #0D123E #210D3E
triadic
#0D123E #3E0D12 #123E0D
tetradic
#0D123E #3E0D2A #3E390D #0D3E21
square
#0D123E #3E0D2A #3E390D #0D3E21
split-complementary
#0D123E #3E210D #2A3E0D
monochromatic
#050719 #050719 #0D123E #182171 #222FA3

Accessibility & contrast

On white

17.90
#0D123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0D123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D123E
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D123E#FFFFFF#000000##FFFFFF
##0D123E1.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0d123e;
/* rgb */ color: rgb(13, 18, 62);
/* oklch */ color: oklch(21.1% 0.083 272.1);
Tailwind
colors: {
  custom: {
    50: '#544f74',
    500: '#0d123e',
    950: '#000000',
  },
}
SCSS
$custom: #0d123e;
$custom-light: #544f74;
$custom-dark: #000000;
JSON
{
  "hex": "#0d123e",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 233.878,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21147,
    "c": 0.08339,
    "h": 272.1
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#0D123E
secondary
#7A722D
accent
#D740E8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D123E

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

Preview Lab → · Contrast checker → · Palette generator →

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