#0D124B#0D124B

#0D124B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.103 H 271.1°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#0D124B
RGBrgb(13, 18, 75)
HSLhsl(235, 70%, 17%)
HSVhsv(235, 83%, 29%)
CMYKcmyk(82.7%, 76%, 0%, 70.6%)
CIE-LABlab(9.21, 20.87, -35.76)
CIE-LCHlch(9.21, 41.40, 300.27°)
OKLaboklab(22.58% 0.0019 -0.1035)
OKLCHoklch(22.58% 0.103 271.1)
XYZxyz(1.6519, 1.0260, 6.7662)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D124B #4B460D
analogous
#0D314B #0D124B #270D4B
triadic
#0D124B #4B0D12 #124B0D
tetradic
#0D124B #4B0D31 #4B460D #0D4B27
square
#0D124B #4B0D31 #4B460D #0D4B27
split-complementary
#0D124B #4B270D #314B0D
monochromatic
#05061A #05061A #0D124B #161F7F #1F2BB3

Accessibility & contrast

On white

17.42
#0D124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D124B
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D124B#FFFFFF#000000##FFFFFF
##0D124B1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#00222C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d124b;
/* rgb */ color: rgb(13, 18, 75);
/* oklch */ color: oklch(22.6% 0.103 271.1);
Tailwind
colors: {
  custom: {
    50: '#58507e',
    500: '#0d124b',
    950: '#000000',
  },
}
SCSS
$custom: #0d124b;
$custom-light: #58507e;
$custom-dark: #000000;
JSON
{
  "hex": "#0d124b",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 235.161,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22584,
    "c": 0.10349,
    "h": 271.1
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#0D124B
secondary
#867F2E
accent
#DF3BED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0D124B

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

Preview Lab → · Contrast checker → · Palette generator →

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