#0D123F#0D123F

#0D123F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.085 H 272.0°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#0D123F
RGBrgb(13, 18, 63)
HSLhsl(234, 66%, 15%)
HSVhsv(234, 79%, 25%)
CMYKcmyk(79.4%, 71.4%, 0%, 75.3%)
CIE-LABlab(7.92, 15.83, -29.43)
CIE-LCHlch(7.92, 33.41, 298.27°)
OKLaboklab(21.25% 0.003 -0.0849)
OKLCHoklch(21.25% 0.085 272)
XYZxyz(1.2792, 0.8769, 4.8035)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D123F #3F3A0D
analogous
#0D2B3F #0D123F #210D3F
triadic
#0D123F #3F0D12 #123F0D
tetradic
#0D123F #3F0D2B #3F3A0D #0D3F21
square
#0D123F #3F0D2B #3F3A0D #0D3F21
split-complementary
#0D123F #3F210D #2B3F0D
monochromatic
#050719 #050719 #0D123F #172072 #222FA4

Accessibility & contrast

On white

17.87
#0D123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0D123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D123F
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D123F#FFFFFF#000000##FFFFFF
##0D123F1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0d123f;
/* rgb */ color: rgb(13, 18, 63);
/* oklch */ color: oklch(21.3% 0.085 272.0);
Tailwind
colors: {
  custom: {
    50: '#544f74',
    500: '#0d123f',
    950: '#000000',
  },
}
SCSS
$custom: #0d123f;
$custom-light: #544f74;
$custom-dark: #000000;
JSON
{
  "hex": "#0d123f",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 234,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21253,
    "c": 0.08499,
    "h": 272
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#0D123F
secondary
#7B732D
accent
#D83FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D123F

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

Preview Lab → · Contrast checker → · Palette generator →

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