#0F315B#0F315B

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

Color values

HEX#0F315B
RGBrgb(15, 49, 91)
HSLhsl(213, 72%, 21%)
HSVhsv(213, 84%, 36%)
CMYKcmyk(83.5%, 46.2%, 0%, 64.3%)
CIE-LABlab(20.26, 4.89, -28.67)
CIE-LCHlch(20.26, 29.08, 279.68°)
OKLaboklab(31.38% -0.021 -0.0821)
OKLCHoklch(31.38% 0.085 255.6)
XYZxyz(3.1829, 3.0531, 10.3171)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315B #5B390F
analogous
#0F575B #0F315B #130F5B
triadic
#0F315B #5B0F31 #315B0F
tetradic
#0F315B #5B0F57 #5B390F #0F5B13
square
#0F315B #5B0F57 #5B390F #0F5B13
split-complementary
#0F315B #5B130F #575B0F
monochromatic
#040E1A #061526 #0F315B #184D90 #206AC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F315B#FFFFFF#000000##FFFFFF
##0F315B1.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)
#1C355D
Deuteranopia (green-blind)
#0E2E5A
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f315b;
/* rgb */ color: rgb(15, 49, 91);
/* oklch */ color: oklch(31.4% 0.085 255.6);
Tailwind
colors: {
  custom: {
    50: '#5b688a',
    500: '#0f315b',
    950: '#000000',
  },
}
SCSS
$custom: #0f315b;
$custom-light: #5b688a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315b",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 213.158,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31379,
    "c": 0.08473,
    "h": 255.6
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#0F315B
secondary
#956831
accent
#9D39EE
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0F315B

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

Preview Lab → · Contrast checker → · Palette generator →

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