#0D2852#0D2852

#0D2852 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.084 H 259.1°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#0D2852
RGBrgb(13, 40, 82)
HSLhsl(217, 73%, 19%)
HSVhsv(217, 84%, 32%)
CMYKcmyk(84.1%, 51.2%, 0%, 67.8%)
CIE-LABlab(16.56, 7.28, -28.59)
CIE-LCHlch(16.56, 29.50, 284.30°)
OKLaboklab(28.3% -0.0157 -0.0821)
OKLCHoklch(28.3% 0.084 259.1)
XYZxyz(2.4472, 2.2121, 8.2790)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2852 #52370D
analogous
#0D4A52 #0D2852 #140D52
triadic
#0D2852 #520D28 #28520D
tetradic
#0D2852 #520D4A #52370D #0D5214
square
#0D2852 #520D4A #52370D #0D5214
split-complementary
#0D2852 #52140D #4A520D
monochromatic
#040D1A #050E1D #0D2852 #154287 #1E5CBC

Accessibility & contrast

On white

14.56
#0D2852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0D2852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2852
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2852#FFFFFF#000000##FFFFFF
##0D28521.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#022651
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0d2852;
/* rgb */ color: rgb(13, 40, 82);
/* oklch */ color: oklch(28.3% 0.084 259.1);
Tailwind
colors: {
  custom: {
    50: '#586183',
    500: '#0d2852',
    950: '#000000',
  },
}
SCSS
$custom: #0d2852;
$custom-light: #586183;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2852",
  "rgb": {
    "r": 13,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 216.522,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.08355,
    "h": 259.1
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#0D2852
secondary
#8D682E
accent
#A838EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0D2852

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

Preview Lab → · Contrast checker → · Palette generator →

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