#0D1F56#0D1F56

#0D1F56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.102 H 265.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#0D1F56
RGBrgb(13, 31, 86)
HSLhsl(225, 74%, 19%)
HSVhsv(225, 85%, 34%)
CMYKcmyk(84.9%, 64%, 0%, 66.3%)
CIE-LABlab(14.04, 15.86, -35.37)
CIE-LCHlch(14.04, 38.76, 294.15°)
OKLaboklab(26.49% -0.0076 -0.1022)
OKLCHoklch(26.49% 0.102 265.8)
XYZxyz(2.3351, 1.7372, 9.0145)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F56 #56440D
analogous
#0D4456 #0D1F56 #1F0D56
triadic
#0D1F56 #560D1F #1F560D
tetradic
#0D1F56 #560D44 #56440D #0D561F
square
#0D1F56 #560D44 #56440D #0D561F
split-complementary
#0D1F56 #561F0D #44560D
monochromatic
#040A1B #050C21 #0D1F56 #15328B #1D45C0

Accessibility & contrast

On white

15.59
#0D1F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D1F56
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F56#FFFFFF#000000##FFFFFF
##0D1F561.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0d1f56;
/* rgb */ color: rgb(13, 31, 86);
/* oklch */ color: oklch(26.5% 0.102 265.8);
Tailwind
colors: {
  custom: {
    50: '#5a5a86',
    500: '#0d1f56',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f56;
$custom-light: #5a5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f56",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 225.205,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2649,
    "c": 0.10248,
    "h": 265.8
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#0D1F56
secondary
#91782E
accent
#C337F0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0D1F56

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

Preview Lab → · Contrast checker → · Palette generator →

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