#0D315E#0D315E

#0D315E is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.5% C 0.090 H 256.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#0D315E
RGBrgb(13, 49, 94)
HSLhsl(213, 76%, 21%)
HSVhsv(213, 86%, 37%)
CMYKcmyk(86.2%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.40, 5.95, -30.42)
CIE-LCHlch(20.40, 31.00, 281.07°)
OKLaboklab(31.54% -0.0216 -0.0872)
OKLCHoklch(31.54% 0.09 256.1)
XYZxyz(3.2839, 3.0899, 11.0108)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D315E #5E3A0D
analogous
#0D595E #0D315E #110D5E
triadic
#0D315E #5E0D31 #315E0D
tetradic
#0D315E #5E0D59 #5E3A0D #0D5E11
square
#0D315E #5E0D59 #5E3A0D #0D5E11
split-complementary
#0D315E #5E110D #595E0D
monochromatic
#040E1B #061528 #0D315E #144D94 #1C69CA

Accessibility & contrast

On white

12.98
#0D315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#0D315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D315E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D315E#FFFFFF#000000##FFFFFF
##0D315E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193560
Deuteranopia (green-blind)
#082E5D
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0d315e;
/* rgb */ color: rgb(13, 49, 94);
/* oklch */ color: oklch(31.5% 0.090 256.1);
Tailwind
colors: {
  custom: {
    50: '#5b688c',
    500: '#0d315e',
    950: '#000000',
  },
}
SCSS
$custom: #0d315e;
$custom-light: #5b688c;
$custom-dark: #000000;
JSON
{
  "hex": "#0d315e",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 213.333,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31541,
    "c": 0.08989,
    "h": 256.1
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#0D315E
secondary
#98692F
accent
#9E36F2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0D315E

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

Preview Lab → · Contrast checker → · Palette generator →

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