#0D1F54#0D1F54

#0D1F54 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.099 H 265.6°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#0D1F54
RGBrgb(13, 31, 84)
HSLhsl(225, 73%, 19%)
HSVhsv(225, 85%, 33%)
CMYKcmyk(84.5%, 63.1%, 0%, 67.1%)
CIE-LABlab(13.86, 14.98, -34.32)
CIE-LCHlch(13.86, 37.45, 293.59°)
OKLaboklab(26.29% -0.0077 -0.0991)
OKLCHoklch(26.29% 0.099 265.6)
XYZxyz(2.2556, 1.7054, 8.5961)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F54 #54420D
analogous
#0D4354 #0D1F54 #1F0D54
triadic
#0D1F54 #540D1F #1F540D
tetradic
#0D1F54 #540D43 #54420D #0D541F
square
#0D1F54 #540D43 #54420D #0D541F
split-complementary
#0D1F54 #541F0D #43540D
monochromatic
#040A1A #050B1F #0D1F54 #153389 #1D46BE

Accessibility & contrast

On white

15.66
#0D1F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0D1F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F54
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F54#FFFFFF#000000##FFFFFF
##0D1F541.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0d1f54;
/* rgb */ color: rgb(13, 31, 84);
/* oklch */ color: oklch(26.3% 0.099 265.6);
Tailwind
colors: {
  custom: {
    50: '#595a85',
    500: '#0d1f54',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f54;
$custom-light: #595a85;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f54",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 224.789,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26294,
    "c": 0.09941,
    "h": 265.6
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#0D1F54
secondary
#8F762E
accent
#C138F0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0D1F54

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

Preview Lab → · Contrast checker → · Palette generator →

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