#0D1F58#0D1F58

#0D1F58 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.106 H 265.9°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#0D1F58
RGBrgb(13, 31, 88)
HSLhsl(226, 74%, 20%)
HSVhsv(226, 85%, 35%)
CMYKcmyk(85.2%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.23, 16.73, -36.41)
CIE-LCHlch(14.23, 40.07, 294.68°)
OKLaboklab(26.69% -0.0075 -0.1053)
OKLCHoklch(26.69% 0.106 265.9)
XYZxyz(2.4168, 1.7698, 9.4449)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F58 #58460D
analogous
#0D4558 #0D1F58 #210D58
triadic
#0D1F58 #580D1F #1F580D
tetradic
#0D1F58 #580D45 #58460D #0D5821
square
#0D1F58 #580D45 #58460D #0D5821
split-complementary
#0D1F58 #58210D #45580D
monochromatic
#04091B #050C23 #0D1F58 #15328D #1D45C3

Accessibility & contrast

On white

15.51
#0D1F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0D1F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F58
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F58#FFFFFF#000000##FFFFFF
##0D1F581.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0d1f58;
/* rgb */ color: rgb(13, 31, 88);
/* oklch */ color: oklch(26.7% 0.106 265.9);
Tailwind
colors: {
  custom: {
    50: '#5a5a88',
    500: '#0d1f58',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f58;
$custom-light: #5a5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f58",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 225.6,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26688,
    "c": 0.10553,
    "h": 265.9
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#0D1F58
secondary
#937A2E
accent
#C437F1
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04030B
muted
#79787C

Preview Lab

Preview with #0D1F58

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

Preview Lab → · Contrast checker → · Palette generator →

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