#0F315A#0F315A

#0F315A is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.3% C 0.083 H 255.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#0F315A
RGBrgb(15, 49, 90)
HSLhsl(213, 71%, 21%)
HSVhsv(213, 83%, 35%)
CMYKcmyk(83.3%, 45.6%, 0%, 64.7%)
CIE-LABlab(20.19, 4.46, -28.12)
CIE-LCHlch(20.19, 28.47, 279.01°)
OKLaboklab(31.3% -0.0213 -0.0805)
OKLCHoklch(31.3% 0.083 255.2)
XYZxyz(3.1401, 3.0360, 10.0914)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F315A #5A380F
analogous
#0F565A #0F315A #120F5A
triadic
#0F315A #5A0F31 #315A0F
tetradic
#0F315A #5A0F56 #5A380F #0F5A12
square
#0F315A #5A0F56 #5A380F #0F5A12
split-complementary
#0F315A #5A120F #565A0F
monochromatic
#040E1A #061426 #0F315A #184E8E #206AC3

Accessibility & contrast

On white

13.07
#0F315A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F315A
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F315A#FFFFFF#000000##FFFFFF
##0F315A1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D345C
Deuteranopia (green-blind)
#0F2E59
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f315a;
/* rgb */ color: rgb(15, 49, 90);
/* oklch */ color: oklch(31.3% 0.083 255.2);
Tailwind
colors: {
  custom: {
    50: '#5a6889',
    500: '#0f315a',
    950: '#000000',
  },
}
SCSS
$custom: #0f315a;
$custom-light: #5a6889;
$custom-dark: #000000;
JSON
{
  "hex": "#0f315a",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 212.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31304,
    "c": 0.08322,
    "h": 255.2
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#0F315A
secondary
#946731
accent
#9C3AEE
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0F315A

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

Preview Lab → · Contrast checker → · Palette generator →

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