#0D1158#0D1158

#0D1158 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.0% C 0.123 H 270.2°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#0D1158
RGBrgb(13, 17, 88)
HSLhsl(237, 74%, 20%)
HSVhsv(237, 85%, 35%)
CMYKcmyk(85.2%, 80.7%, 0%, 65.5%)
CIE-LABlab(10.49, 26.73, -42.56)
CIE-LCHlch(10.49, 50.26, 302.13°)
OKLaboklab(23.96% 0.0004 -0.1233)
OKLCHoklch(23.96% 0.123 270.2)
XYZxyz(2.1273, 1.1908, 9.3484)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1158 #58540D
analogous
#0D3758 #0D1158 #2F0D58
triadic
#0D1158 #580D11 #11580D
tetradic
#0D1158 #580D37 #58540D #0D582F
square
#0D1158 #580D37 #58540D #0D582F
split-complementary
#0D1158 #582F0D #37580D
monochromatic
#04051B #050723 #0D1158 #151B8D #1D26C3

Accessibility & contrast

On white

16.96
#0D1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0D1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1158
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1158#FFFFFF#000000##FFFFFF
##0D11581.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205A
Deuteranopia (green-blind)
#001957
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0d1158;
/* rgb */ color: rgb(13, 17, 88);
/* oklch */ color: oklch(24.0% 0.123 270.2);
Tailwind
colors: {
  custom: {
    50: '#5c5088',
    500: '#0d1158',
    950: '#000000',
  },
}
SCSS
$custom: #0d1158;
$custom-light: #5c5088;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1158",
  "rgb": {
    "r": 13,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 236.8,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.23961,
    "c": 0.12327,
    "h": 270.2
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#0D1158
secondary
#938D2E
accent
#E737F1
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #0D1158

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

Preview Lab → · Contrast checker → · Palette generator →

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