#0F315E#0F315E

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

Color values

HEX#0F315E
RGBrgb(15, 49, 94)
HSLhsl(214, 72%, 21%)
HSVhsv(214, 84%, 37%)
CMYKcmyk(84%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.46, 6.19, -30.32)
CIE-LCHlch(20.46, 30.94, 281.54°)
OKLaboklab(31.61% -0.0203 -0.0869)
OKLCHoklch(31.61% 0.089 256.8)
XYZxyz(3.3149, 3.1059, 11.0123)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315E #5E3C0F
analogous
#0F595E #0F315E #150F5E
triadic
#0F315E #5E0F31 #315E0F
tetradic
#0F315E #5E0F59 #5E3C0F #0F5E15
square
#0F315E #5E0F59 #5E3C0F #0F5E15
split-complementary
#0F315E #5E150F #595E0F
monochromatic
#040E1A #071529 #0F315E #174D93 #2068C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F315E#FFFFFF#000000##FFFFFF
##0F315E1.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)
#1A3560
Deuteranopia (green-blind)
#092E5D
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f315e;
/* rgb */ color: rgb(15, 49, 94);
/* oklch */ color: oklch(31.6% 0.089 256.8);
Tailwind
colors: {
  custom: {
    50: '#5b688c',
    500: '#0f315e',
    950: '#000000',
  },
}
SCSS
$custom: #0f315e;
$custom-light: #5b688c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315e",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 214.177,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.08927,
    "h": 256.8
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#0F315E
secondary
#976B31
accent
#A139EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F315E

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

Preview Lab → · Contrast checker → · Palette generator →

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