#0D315F#0D315F

#0D315F is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.6% C 0.091 H 256.5°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#0D315F
RGBrgb(13, 49, 95)
HSLhsl(214, 76%, 21%)
HSVhsv(214, 86%, 37%)
CMYKcmyk(86.3%, 48.4%, 0%, 62.7%)
CIE-LABlab(20.47, 6.39, -30.96)
CIE-LCHlch(20.47, 31.62, 281.66°)
OKLaboklab(31.62% -0.0214 -0.0888)
OKLCHoklch(31.62% 0.091 256.5)
XYZxyz(3.3291, 3.1080, 11.2487)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D315F #5F3B0D
analogous
#0D5A5F #0D315F #120D5F
triadic
#0D315F #5F0D31 #315F0D
tetradic
#0D315F #5F0D5A #5F3B0D #0D5F12
square
#0D315F #5F0D5A #5F3B0D #0D5F12
split-complementary
#0D315F #5F120D #5A5F0D
monochromatic
#040E1B #061529 #0D315F #144D95 #1C69CB

Accessibility & contrast

On white

12.95
#0D315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D315F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D315F#FFFFFF#000000##FFFFFF
##0D315F1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193561
Deuteranopia (green-blind)
#062E5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0d315f;
/* rgb */ color: rgb(13, 49, 95);
/* oklch */ color: oklch(31.6% 0.091 256.5);
Tailwind
colors: {
  custom: {
    50: '#5b688d',
    500: '#0d315f',
    950: '#000000',
  },
}
SCSS
$custom: #0d315f;
$custom-light: #5b688d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d315f",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 213.659,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31618,
    "c": 0.09139,
    "h": 256.5
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#0D315F
secondary
#996A2F
accent
#9F35F3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0D315F

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

Preview Lab → · Contrast checker → · Palette generator →

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