#0F3157#0F3157

#0F3157 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.1% C 0.079 H 253.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#0F3157
RGBrgb(15, 49, 87)
HSLhsl(212, 71%, 20%)
HSVhsv(212, 83%, 34%)
CMYKcmyk(82.8%, 43.7%, 0%, 65.9%)
CIE-LABlab(19.99, 3.16, -26.45)
CIE-LCHlch(19.99, 26.63, 276.81°)
OKLaboklab(31.08% -0.022 -0.0756)
OKLCHoklch(31.08% 0.079 253.7)
XYZxyz(3.0150, 2.9860, 9.4324)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3157 #57350F
analogous
#0F5557 #0F3157 #110F57
triadic
#0F3157 #570F31 #31570F
tetradic
#0F3157 #570F55 #57350F #0F5711
square
#0F3157 #570F55 #57350F #0F5711
split-complementary
#0F3157 #57110F #55570F
monochromatic
#050F1A #061423 #0F3157 #184E8B #216CBF

Accessibility & contrast

On white

13.15
#0F3157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F3157
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3157#FFFFFF#000000##FFFFFF
##0F31571.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#132D56
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0f3157;
/* rgb */ color: rgb(15, 49, 87);
/* oklch */ color: oklch(31.1% 0.079 253.7);
Tailwind
colors: {
  custom: {
    50: '#5a6886',
    500: '#0f3157',
    950: '#000000',
  },
}
SCSS
$custom: #0f3157;
$custom-light: #5a6886;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3157",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 211.667,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.31084,
    "c": 0.0787,
    "h": 253.7
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#0F3157
secondary
#916431
accent
#993AED
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0F3157

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

Preview Lab → · Contrast checker → · Palette generator →

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