#0F315F#0F315F

#0F315F is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.7% C 0.091 H 257.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#0F315F
RGBrgb(15, 49, 95)
HSLhsl(215, 73%, 22%)
HSVhsv(215, 84%, 37%)
CMYKcmyk(84.2%, 48.4%, 0%, 62.7%)
CIE-LABlab(20.53, 6.63, -30.86)
CIE-LCHlch(20.53, 31.56, 282.12°)
OKLaboklab(31.69% -0.0201 -0.0885)
OKLCHoklch(31.69% 0.091 257.2)
XYZxyz(3.3601, 3.1240, 11.2502)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315F #5F3D0F
analogous
#0F595F #0F315F #150F5F
triadic
#0F315F #5F0F31 #315F0F
tetradic
#0F315F #5F0F59 #5F3D0F #0F5F15
square
#0F315F #5F0F59 #5F3D0F #0F5F15
split-complementary
#0F315F #5F150F #595F0F
monochromatic
#040E1A #07162A #0F315F #174C94 #2068C9

Accessibility & contrast

On white

12.92
#0F315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F315F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F315F#FFFFFF#000000##FFFFFF
##0F315F1.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193561
Deuteranopia (green-blind)
#072E5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f315f;
/* rgb */ color: rgb(15, 49, 95);
/* oklch */ color: oklch(31.7% 0.091 257.2);
Tailwind
colors: {
  custom: {
    50: '#5c688d',
    500: '#0f315f',
    950: '#000000',
  },
}
SCSS
$custom: #0f315f;
$custom-light: #5c688d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315f",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 214.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31685,
    "c": 0.09078,
    "h": 257.2
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#0F315F
secondary
#986D32
accent
#A238EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #0F315F

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

Preview Lab → · Contrast checker → · Palette generator →

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