#0F1151#0F1151

#0F1151 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.113 H 272.1°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#0F1151
RGBrgb(15, 17, 81)
HSLhsl(238, 69%, 19%)
HSVhsv(238, 81%, 32%)
CMYKcmyk(81.5%, 79%, 0%, 68.2%)
CIE-LABlab(9.77, 24.20, -38.97)
CIE-LCHlch(9.77, 45.87, 301.84°)
OKLaboklab(23.23% 0.0041 -0.1128)
OKLCHoklch(23.23% 0.113 272.1)
XYZxyz(1.8822, 1.0963, 7.8954)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1151 #514F0F
analogous
#0F3251 #0F1151 #2E0F51
triadic
#0F1151 #510F11 #11510F
tetradic
#0F1151 #510F32 #514F0F #0F512E
square
#0F1151 #510F32 #514F0F #0F512E
split-complementary
#0F1151 #512E0F #32510F
monochromatic
#05051A #05061D #0F1151 #191C85 #2227B8

Accessibility & contrast

On white

17.22
#0F1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0F1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1151
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1151#FFFFFF#000000##FFFFFF
##0F11511.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f1151;
/* rgb */ color: rgb(15, 17, 81);
/* oklch */ color: oklch(23.2% 0.113 272.1);
Tailwind
colors: {
  custom: {
    50: '#5a4f83',
    500: '#0f1151',
    950: '#000000',
  },
}
SCSS
$custom: #0f1151;
$custom-light: #5a4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1151",
  "rgb": {
    "r": 15,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 238.182,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23231,
    "c": 0.11286,
    "h": 272.1
  },
  "luminance": 0.01097
}

Semantic roles & 50–950 ramp

primary
#0F1151
secondary
#8B8831
accent
#E63CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0F1151

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

Preview Lab → · Contrast checker → · Palette generator →

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