#0D2851#0D2851

#0D2851 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.2% C 0.082 H 258.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#0D2851
RGBrgb(13, 40, 81)
HSLhsl(216, 72%, 18%)
HSVhsv(216, 84%, 32%)
CMYKcmyk(84%, 50.6%, 0%, 68.2%)
CIE-LABlab(16.49, 6.84, -28.03)
CIE-LCHlch(16.49, 28.85, 283.72°)
OKLaboklab(28.22% -0.0159 -0.0804)
OKLCHoklch(28.22% 0.082 258.8)
XYZxyz(2.4094, 2.1970, 8.0801)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2851 #51360D
analogous
#0D4A51 #0D2851 #140D51
triadic
#0D2851 #510D28 #28510D
tetradic
#0D2851 #510D4A #51360D #0D5114
square
#0D2851 #510D4A #51360D #0D5114
split-complementary
#0D2851 #51140D #4A510D
monochromatic
#040D1A #050E1C #0D2851 #154286 #1E5CBA

Accessibility & contrast

On white

14.59
#0D2851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D2851
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2851#FFFFFF#000000##FFFFFF
##0D28511.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122C53
Deuteranopia (green-blind)
#032650
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0d2851;
/* rgb */ color: rgb(13, 40, 81);
/* oklch */ color: oklch(28.2% 0.082 258.8);
Tailwind
colors: {
  custom: {
    50: '#586182',
    500: '#0d2851',
    950: '#000000',
  },
}
SCSS
$custom: #0d2851;
$custom-light: #586182;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2851",
  "rgb": {
    "r": 13,
    "g": 40,
    "b": 81
  },
  "hsl": {
    "h": 216.176,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28217,
    "c": 0.08199,
    "h": 258.8
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#0D2851
secondary
#8C672E
accent
#A739EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0D2851

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

Preview Lab → · Contrast checker → · Palette generator →

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