#0F165A#0F165A

#0F165A is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.120 H 270.0°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#0F165A
RGBrgb(15, 22, 90)
HSLhsl(234, 71%, 21%)
HSVhsv(234, 83%, 35%)
CMYKcmyk(83.3%, 75.6%, 0%, 64.7%)
CIE-LABlab(12.05, 24.33, -41.34)
CIE-LCHlch(12.05, 47.97, 300.48°)
OKLaboklab(25.18% 0 -0.1197)
OKLCHoklch(25.18% 0.12 270)
XYZxyz(2.3287, 1.4133, 9.8209)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F165A #5A530F
analogous
#0F3B5A #0F165A #2D0F5A
triadic
#0F165A #5A0F16 #165A0F
tetradic
#0F165A #5A0F3B #5A530F #0F5A2D
square
#0F165A #5A0F3B #5A530F #0F5A2D
split-complementary
#0F165A #5A2D0F #3B5A0F
monochromatic
#04061A #060926 #0F165A #18238E #2030C3

Accessibility & contrast

On white

16.37
#0F165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0F165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F165A
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F165A#FFFFFF#000000##FFFFFF
##0F165A1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001C59
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f165a;
/* rgb */ color: rgb(15, 22, 90);
/* oklch */ color: oklch(25.2% 0.120 270.0);
Tailwind
colors: {
  custom: {
    50: '#5d5389',
    500: '#0f165a',
    950: '#000000',
  },
}
SCSS
$custom: #0f165a;
$custom-light: #5d5389;
$custom-dark: #000000;
JSON
{
  "hex": "#0f165a",
  "rgb": {
    "r": 15,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 234.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25176,
    "c": 0.1197,
    "h": 270
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#0F165A
secondary
#948A31
accent
#DD3AEE
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F165A

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

Preview Lab → · Contrast checker → · Palette generator →

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