#0D2154#0D2154

#0D2154 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.097 H 264.5°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#0D2154
RGBrgb(13, 33, 84)
HSLhsl(223, 73%, 19%)
HSVhsv(223, 85%, 33%)
CMYKcmyk(84.5%, 60.7%, 0%, 67.1%)
CIE-LABlab(14.47, 13.47, -33.32)
CIE-LCHlch(14.47, 35.93, 292.01°)
OKLaboklab(26.76% -0.0093 -0.0961)
OKLCHoklch(26.76% 0.097 264.5)
XYZxyz(2.3095, 1.8131, 8.6140)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2154 #54400D
analogous
#0D4554 #0D2154 #1D0D54
triadic
#0D2154 #540D21 #21540D
tetradic
#0D2154 #540D45 #54400D #0D541D
square
#0D2154 #540D45 #54400D #0D541D
split-complementary
#0D2154 #541D0D #45540D
monochromatic
#040A1A #050C1F #0D2154 #153689 #1D4BBE

Accessibility & contrast

On white

15.41
#0D2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0D2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2154
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2154#FFFFFF#000000##FFFFFF
##0D21541.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0d2154;
/* rgb */ color: rgb(13, 33, 84);
/* oklch */ color: oklch(26.8% 0.097 264.5);
Tailwind
colors: {
  custom: {
    50: '#595b85',
    500: '#0d2154',
    950: '#000000',
  },
}
SCSS
$custom: #0d2154;
$custom-light: #595b85;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2154",
  "rgb": {
    "r": 13,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 223.099,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26757,
    "c": 0.09657,
    "h": 264.5
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#0D2154
secondary
#8F742E
accent
#BC38F0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0D2154

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

Preview Lab → · Contrast checker → · Palette generator →

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