#0F3159#0F3159

#0F3159 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.2% C 0.082 H 254.7°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#0F3159
RGBrgb(15, 49, 89)
HSLhsl(212, 71%, 20%)
HSVhsv(212, 83%, 35%)
CMYKcmyk(83.1%, 44.9%, 0%, 65.1%)
CIE-LABlab(20.12, 4.02, -27.56)
CIE-LCHlch(20.12, 27.85, 278.30°)
OKLaboklab(31.23% -0.0215 -0.0788)
OKLCHoklch(31.23% 0.082 254.7)
XYZxyz(3.0978, 3.0191, 9.8687)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3159 #59370F
analogous
#0F5659 #0F3159 #120F59
triadic
#0F3159 #590F31 #31590F
tetradic
#0F3159 #590F56 #59370F #0F5912
square
#0F3159 #590F56 #59370F #0F5912
split-complementary
#0F3159 #59120F #56590F
monochromatic
#040E1A #061425 #0F3159 #184E8D #216BC2

Accessibility & contrast

On white

13.09
#0F3159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#0F3159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3159
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3159#FFFFFF#000000##FFFFFF
##0F31591.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D345B
Deuteranopia (green-blind)
#112D58
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f3159;
/* rgb */ color: rgb(15, 49, 89);
/* oklch */ color: oklch(31.2% 0.082 254.7);
Tailwind
colors: {
  custom: {
    50: '#5a6888',
    500: '#0f3159',
    950: '#000000',
  },
}
SCSS
$custom: #0f3159;
$custom-light: #5a6888;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3159",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 89
  },
  "hsl": {
    "h": 212.432,
    "s": 71.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3123,
    "c": 0.08171,
    "h": 254.7
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#0F3159
secondary
#936631
accent
#9B3AEE
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0F3159

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

Preview Lab → · Contrast checker → · Palette generator →

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