#0D3158#0D3158

#0D3158 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.1% C 0.081 H 253.4°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#0D3158
RGBrgb(13, 49, 88)
HSLhsl(211, 74%, 20%)
HSVhsv(211, 85%, 35%)
CMYKcmyk(85.2%, 44.3%, 0%, 65.5%)
CIE-LABlab(19.99, 3.33, -27.11)
CIE-LCHlch(19.99, 27.32, 277.00°)
OKLaboklab(31.09% -0.0231 -0.0775)
OKLCHoklch(31.09% 0.081 253.4)
XYZxyz(3.0251, 2.9864, 9.6476)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D3158 #58340D
analogous
#0D5758 #0D3158 #0F0D58
triadic
#0D3158 #580D31 #31580D
tetradic
#0D3158 #580D57 #58340D #0D580F
square
#0D3158 #580D57 #58340D #0D580F
split-complementary
#0D3158 #580F0D #57580D
monochromatic
#040F1B #051323 #0D3158 #154F8D #1D6CC3

Accessibility & contrast

On white

13.15
#0D3158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#0D3158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D3158
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D3158#FFFFFF#000000##FFFFFF
##0D31581.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#112D57
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0d3158;
/* rgb */ color: rgb(13, 49, 88);
/* oklch */ color: oklch(31.1% 0.081 253.4);
Tailwind
colors: {
  custom: {
    50: '#596887',
    500: '#0d3158',
    950: '#000000',
  },
}
SCSS
$custom: #0d3158;
$custom-light: #596887;
$custom-dark: #000000;
JSON
{
  "hex": "#0d3158",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 211.2,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.08089,
    "h": 253.4
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#0D3158
secondary
#93622E
accent
#9837F1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0D3158

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

Preview Lab → · Contrast checker → · Palette generator →

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