#0D1256#0D1256

#0D1256 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.119 H 270.1°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#0D1256
RGBrgb(13, 18, 86)
HSLhsl(236, 74%, 19%)
HSVhsv(236, 85%, 34%)
CMYKcmyk(84.9%, 79.1%, 0%, 66.3%)
CIE-LABlab(10.48, 25.29, -41.21)
CIE-LCHlch(10.48, 48.36, 301.53°)
OKLaboklab(23.88% 0.0003 -0.1194)
OKLCHoklch(23.88% 0.119 270.1)
XYZxyz(2.0614, 1.1898, 8.9233)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1256 #56510D
analogous
#0D3756 #0D1256 #2D0D56
triadic
#0D1256 #560D12 #12560D
tetradic
#0D1256 #560D37 #56510D #0D562D
square
#0D1256 #560D37 #56510D #0D562D
split-complementary
#0D1256 #562D0D #37560D
monochromatic
#04061B #050721 #0D1256 #151D8B #1D28C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0D1256#FFFFFF#000000##FFFFFF
##0D12561.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)
#002058
Deuteranopia (green-blind)
#001955
Tritanopia (blue-blind)
#002632
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0d1256;
/* rgb */ color: rgb(13, 18, 86);
/* oklch */ color: oklch(23.9% 0.119 270.1);
Tailwind
colors: {
  custom: {
    50: '#5b5086',
    500: '#0d1256',
    950: '#000000',
  },
}
SCSS
$custom: #0d1256;
$custom-light: #5b5086;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1256",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 235.89,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23884,
    "c": 0.11937,
    "h": 270.1
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#0D1256
secondary
#918A2E
accent
#E437F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #0D1256

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

Preview Lab → · Contrast checker → · Palette generator →

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