#0F166A#0F166A

#0F166A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.142 H 269.0°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#0F166A
RGBrgb(15, 22, 106)
HSLhsl(235, 75%, 24%)
HSVhsv(235, 86%, 42%)
CMYKcmyk(85.8%, 79.2%, 0%, 58.4%)
CIE-LABlab(13.92, 30.53, -48.88)
CIE-LCHlch(13.92, 57.63, 301.99°)
OKLaboklab(27.07% -0.0024 -0.1416)
OKLCHoklch(27.07% 0.142 269)
XYZxyz(3.0845, 1.7156, 13.8015)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F166A #6A630F
analogous
#0F436A #0F166A #350F6A
triadic
#0F166A #6A0F16 #166A0F
tetradic
#0F166A #6A0F43 #6A630F #0F6A35
square
#0F166A #6A0F43 #6A630F #0F6A35
split-complementary
#0F166A #6A350F #436A0F
monochromatic
#04061B #070B34 #0F166A #1721A0 #1E2CD5

Accessibility & contrast

On white

15.63
#0F166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0F166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F166A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F166A#FFFFFF#000000##FFFFFF
##0F166A1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#001F69
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f166a;
/* rgb */ color: rgb(15, 22, 106);
/* oklch */ color: oklch(27.1% 0.142 269.0);
Tailwind
colors: {
  custom: {
    50: '#615496',
    500: '#0f166a',
    950: '#000000',
  },
}
SCSS
$custom: #0f166a;
$custom-light: #615496;
$custom-dark: #000000;
JSON
{
  "hex": "#0f166a",
  "rgb": {
    "r": 15,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 235.385,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27071,
    "c": 0.14166,
    "h": 269
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#0F166A
secondary
#A29A32
accent
#E336F2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #0F166A

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

Preview Lab → · Contrast checker → · Palette generator →

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