#0D3157#0D3157

#0D3157 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.0% C 0.079 H 252.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#0D3157
RGBrgb(13, 49, 87)
HSLhsl(211, 74%, 20%)
HSVhsv(211, 85%, 34%)
CMYKcmyk(85.1%, 43.7%, 0%, 65.9%)
CIE-LABlab(19.92, 2.89, -26.55)
CIE-LCHlch(19.92, 26.71, 276.21°)
OKLaboklab(31.02% -0.0233 -0.0759)
OKLCHoklch(31.02% 0.079 252.9)
XYZxyz(2.9839, 2.9700, 9.4310)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D3157 #57330D
analogous
#0D5657 #0D3157 #0E0D57
triadic
#0D3157 #570D31 #31570D
tetradic
#0D3157 #570D56 #57330D #0D570E
square
#0D3157 #570D56 #57330D #0D570E
split-complementary
#0D3157 #570E0D #56570D
monochromatic
#040F1B #051322 #0D3157 #154F8C #1D6DC1

Accessibility & contrast

On white

13.17
#0D3157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#0D3157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D3157
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D3157#FFFFFF#000000##FFFFFF
##0D31571.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#122D56
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0d3157;
/* rgb */ color: rgb(13, 49, 87);
/* oklch */ color: oklch(31.0% 0.079 252.9);
Tailwind
colors: {
  custom: {
    50: '#596886',
    500: '#0d3157',
    950: '#000000',
  },
}
SCSS
$custom: #0d3157;
$custom-light: #596886;
$custom-dark: #000000;
JSON
{
  "hex": "#0d3157",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 210.811,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31016,
    "c": 0.0794,
    "h": 252.9
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#0D3157
secondary
#92612E
accent
#9637F1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0D3157

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

Preview Lab → · Contrast checker → · Palette generator →

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