#0F315C#0F315C

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

Color values

HEX#0F315C
RGBrgb(15, 49, 92)
HSLhsl(214, 72%, 21%)
HSVhsv(214, 84%, 36%)
CMYKcmyk(83.7%, 46.7%, 0%, 63.9%)
CIE-LABlab(20.32, 5.32, -29.22)
CIE-LCHlch(20.32, 29.70, 280.33°)
OKLaboklab(31.46% -0.0208 -0.0837)
OKLCHoklch(31.46% 0.086 256)
XYZxyz(3.2264, 3.0705, 10.5458)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315C #5C3A0F
analogous
#0F575C #0F315C #130F5C
triadic
#0F315C #5C0F31 #315C0F
tetradic
#0F315C #5C0F57 #5C3A0F #0F5C13
square
#0F315C #5C0F57 #5C3A0F #0F5C13
split-complementary
#0F315C #5C130F #575C0F
monochromatic
#040E1A #061527 #0F315C #184D91 #2069C5

Accessibility & contrast

On white

13.01
#0F315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F315C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F315C#FFFFFF#000000##FFFFFF
##0F315C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.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: #0f315c;
/* rgb */ color: rgb(15, 49, 92);
/* oklch */ color: oklch(31.5% 0.086 256.0);
Tailwind
colors: {
  custom: {
    50: '#5b688a',
    500: '#0f315c',
    950: '#000000',
  },
}
SCSS
$custom: #0f315c;
$custom-light: #5b688a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315c",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 213.506,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31455,
    "c": 0.08625,
    "h": 256
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#0F315C
secondary
#956931
accent
#9F39EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F315C

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

Preview Lab → · Contrast checker → · Palette generator →

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