#0F1255#0F1255

#0F1255 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.117 H 271.4°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#0F1255
RGBrgb(15, 18, 85)
HSLhsl(237, 70%, 20%)
HSVhsv(237, 82%, 33%)
CMYKcmyk(82.4%, 78.8%, 0%, 66.7%)
CIE-LABlab(10.48, 25.09, -40.53)
CIE-LCHlch(10.48, 47.67, 301.76°)
OKLaboklab(23.88% 0.0029 -0.1173)
OKLCHoklch(23.88% 0.117 271.4)
XYZxyz(2.0524, 1.1898, 8.7141)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1255 #55520F
analogous
#0F3555 #0F1255 #2F0F55
triadic
#0F1255 #550F12 #12550F
tetradic
#0F1255 #550F35 #55520F #0F552F
square
#0F1255 #550F35 #55520F #0F552F
split-complementary
#0F1255 #552F0F #35550F
monochromatic
#05061A #060721 #0F1255 #181D89 #2128BD

Accessibility & contrast

On white

16.96
#0F1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0F1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1255
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1255#FFFFFF#000000##FFFFFF
##0F12551.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001954
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0f1255;
/* rgb */ color: rgb(15, 18, 85);
/* oklch */ color: oklch(23.9% 0.117 271.4);
Tailwind
colors: {
  custom: {
    50: '#5b5086',
    500: '#0f1255',
    950: '#000000',
  },
}
SCSS
$custom: #0f1255;
$custom-light: #5b5086;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1255",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 237.429,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.23881,
    "c": 0.11737,
    "h": 271.4
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#0F1255
secondary
#8F8B31
accent
#E53BED
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #0F1255

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

Preview Lab → · Contrast checker → · Palette generator →

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