#0D1258#0D1258

#0D1258 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.1% C 0.122 H 270.0°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#0D1258
RGBrgb(13, 18, 88)
HSLhsl(236, 74%, 20%)
HSVhsv(236, 85%, 35%)
CMYKcmyk(85.2%, 79.5%, 0%, 65.5%)
CIE-LABlab(10.72, 26.07, -42.17)
CIE-LCHlch(10.72, 49.58, 301.72°)
OKLaboklab(24.13% 0 -0.1222)
OKLCHoklch(24.13% 0.122 270)
XYZxyz(2.1431, 1.2225, 9.3536)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1258 #58530D
analogous
#0D3858 #0D1258 #2E0D58
triadic
#0D1258 #580D12 #12580D
tetradic
#0D1258 #580D38 #58530D #0D582E
square
#0D1258 #580D38 #58530D #0D582E
split-complementary
#0D1258 #582E0D #38580D
monochromatic
#04051B #050723 #0D1258 #151D8D #1D28C3

Accessibility & contrast

On white

16.87
#0D1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1258
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1258#FFFFFF#000000##FFFFFF
##0D12581.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001957
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0d1258;
/* rgb */ color: rgb(13, 18, 88);
/* oklch */ color: oklch(24.1% 0.122 270.0);
Tailwind
colors: {
  custom: {
    50: '#5c5088',
    500: '#0d1258',
    950: '#000000',
  },
}
SCSS
$custom: #0d1258;
$custom-light: #5c5088;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1258",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 236,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24127,
    "c": 0.12216,
    "h": 270
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#0D1258
secondary
#938C2E
accent
#E437F1
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #0D1258

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

Preview Lab → · Contrast checker → · Palette generator →

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