#0D2951#0D2951

#0D2951 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.5% C 0.081 H 257.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#0D2951
RGBrgb(13, 41, 81)
HSLhsl(215, 72%, 18%)
HSVhsv(215, 84%, 32%)
CMYKcmyk(84%, 49.4%, 0%, 68.2%)
CIE-LABlab(16.82, 6.10, -27.50)
CIE-LCHlch(16.82, 28.16, 282.51°)
OKLaboklab(28.47% -0.0169 -0.0788)
OKLCHoklch(28.47% 0.081 257.9)
XYZxyz(2.4436, 2.2652, 8.0914)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2951 #51350D
analogous
#0D4B51 #0D2951 #130D51
triadic
#0D2951 #510D29 #29510D
tetradic
#0D2951 #510D4B #51350D #0D5113
square
#0D2951 #510D4B #51350D #0D5113
split-complementary
#0D2951 #51130D #4B510D
monochromatic
#040D1A #050E1C #0D2951 #154486 #1E5EBA

Accessibility & contrast

On white

14.45
#0D2951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0D2951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2951
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2951#FFFFFF#000000##FFFFFF
##0D29511.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D53
Deuteranopia (green-blind)
#062750
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0d2951;
/* rgb */ color: rgb(13, 41, 81);
/* oklch */ color: oklch(28.5% 0.081 257.9);
Tailwind
colors: {
  custom: {
    50: '#586282',
    500: '#0d2951',
    950: '#000000',
  },
}
SCSS
$custom: #0d2951;
$custom-light: #586282;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2951",
  "rgb": {
    "r": 13,
    "g": 41,
    "b": 81
  },
  "hsl": {
    "h": 215.294,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28474,
    "c": 0.08062,
    "h": 257.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#0D2951
secondary
#8C652E
accent
#A439EF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0D2951

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

Preview Lab → · Contrast checker → · Palette generator →

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