#0D124C#0D124C

#0D124C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.105 H 271.0°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#0D124C
RGBrgb(13, 18, 76)
HSLhsl(235, 71%, 17%)
HSVhsv(235, 83%, 30%)
CMYKcmyk(82.9%, 76.3%, 0%, 70.2%)
CIE-LABlab(9.32, 21.28, -36.27)
CIE-LCHlch(9.32, 42.05, 300.40°)
OKLaboklab(22.7% 0.0018 -0.105)
OKLCHoklch(22.7% 0.105 271)
XYZxyz(1.6863, 1.0398, 6.9479)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D124C #4C470D
analogous
#0D324C #0D124C #270D4C
triadic
#0D124C #4C0D12 #124C0D
tetradic
#0D124C #4C0D32 #4C470D #0D4C27
square
#0D124C #4C0D32 #4C470D #0D4C27
split-complementary
#0D124C #4C270D #324C0D
monochromatic
#04061A #04061A #0D124C #161E80 #1F2BB5

Accessibility & contrast

On white

17.38
#0D124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D124C
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D124C#FFFFFF#000000##FFFFFF
##0D124C1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d124c;
/* rgb */ color: rgb(13, 18, 76);
/* oklch */ color: oklch(22.7% 0.105 271.0);
Tailwind
colors: {
  custom: {
    50: '#58507f',
    500: '#0d124c',
    950: '#000000',
  },
}
SCSS
$custom: #0d124c;
$custom-light: #58507f;
$custom-dark: #000000;
JSON
{
  "hex": "#0d124c",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 235.238,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22699,
    "c": 0.10498,
    "h": 271
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#0D124C
secondary
#87802E
accent
#DF3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0D124C

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

Preview Lab → · Contrast checker → · Palette generator →

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