#0D315C#0D315C

#0D315C is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.4% C 0.087 H 255.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#0D315C
RGBrgb(13, 49, 92)
HSLhsl(213, 75%, 21%)
HSVhsv(213, 86%, 36%)
CMYKcmyk(85.9%, 46.7%, 0%, 63.9%)
CIE-LABlab(20.26, 5.08, -29.32)
CIE-LCHlch(20.26, 29.76, 279.82°)
OKLaboklab(31.39% -0.0221 -0.084)
OKLCHoklch(31.39% 0.087 255.3)
XYZxyz(3.1953, 3.0545, 10.5443)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D315C #5C380D
analogous
#0D585C #0D315C #100D5C
triadic
#0D315C #5C0D31 #315C0D
tetradic
#0D315C #5C0D58 #5C380D #0D5C10
square
#0D315C #5C0D58 #5C380D #0D5C10
split-complementary
#0D315C #5C100D #585C0D
monochromatic
#040E1B #051426 #0D315C #154E92 #1C6AC7

Accessibility & contrast

On white

13.04
#0D315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#0D315C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D315C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D315C#FFFFFF#000000##FFFFFF
##0D315C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B355E
Deuteranopia (green-blind)
#0C2E5B
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0d315c;
/* rgb */ color: rgb(13, 49, 92);
/* oklch */ color: oklch(31.4% 0.087 255.3);
Tailwind
colors: {
  custom: {
    50: '#5a688a',
    500: '#0d315c',
    950: '#000000',
  },
}
SCSS
$custom: #0d315c;
$custom-light: #5a688a;
$custom-dark: #000000;
JSON
{
  "hex": "#0d315c",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 212.658,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31388,
    "c": 0.08688,
    "h": 255.3
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#0D315C
secondary
#96672F
accent
#9C36F2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0D315C

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

Preview Lab → · Contrast checker → · Palette generator →

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