#0F315D#0F315D

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

Color values

HEX#0F315D
RGBrgb(15, 49, 93)
HSLhsl(214, 72%, 21%)
HSVhsv(214, 84%, 36%)
CMYKcmyk(83.9%, 47.3%, 0%, 63.5%)
CIE-LABlab(20.39, 5.76, -29.77)
CIE-LCHlch(20.39, 30.32, 280.95°)
OKLaboklab(31.53% -0.0206 -0.0853)
OKLCHoklch(31.53% 0.088 256.4)
XYZxyz(3.2704, 3.0881, 10.7775)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315D #5D3B0F
analogous
#0F585D #0F315D #140F5D
triadic
#0F315D #5D0F31 #315D0F
tetradic
#0F315D #5D0F58 #5D3B0F #0F5D14
square
#0F315D #5D0F58 #5D3B0F #0F5D14
split-complementary
#0F315D #5D140F #585D0F
monochromatic
#040E1A #061528 #0F315D #174D92 #2069C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F315D#FFFFFF#000000##FFFFFF
##0F315D1.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)
#1A355F
Deuteranopia (green-blind)
#0B2E5C
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f315d;
/* rgb */ color: rgb(15, 49, 93);
/* oklch */ color: oklch(31.5% 0.088 256.4);
Tailwind
colors: {
  custom: {
    50: '#5b688b',
    500: '#0f315d',
    950: '#000000',
  },
}
SCSS
$custom: #0f315d;
$custom-light: #5b688b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315d",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 213.846,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31531,
    "c": 0.08775,
    "h": 256.4
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#0F315D
secondary
#966A31
accent
#A039EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F315D

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

Preview Lab → · Contrast checker → · Palette generator →

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