#0F0F54#0F0F54

#0F0F54 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.119 H 272.2°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#0F0F54
RGBrgb(15, 15, 84)
HSLhsl(240, 70%, 19%)
HSVhsv(240, 82%, 33%)
CMYKcmyk(82.1%, 82.1%, 0%, 67.1%)
CIE-LABlab(9.67, 26.66, -41.20)
CIE-LCHlch(9.67, 49.07, 302.91°)
OKLaboklab(23.26% 0.0046 -0.1192)
OKLCHoklch(23.26% 0.119 272.2)
XYZxyz(1.9675, 1.0831, 8.4911)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F54 #54540F
analogous
#0F3254 #0F0F54 #320F54
triadic
#0F0F54 #540F0F #0F540F
tetradic
#0F0F54 #540F32 #54540F #0F5432
square
#0F0F54 #540F32 #54540F #0F5432
split-complementary
#0F0F54 #54320F #32540F
monochromatic
#05051A #060620 #0F0F54 #181888 #2222BC

Accessibility & contrast

On white

17.26
#0F0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F54
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F54#FFFFFF#000000##FFFFFF
##0F0F541.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E56
Deuteranopia (green-blind)
#001753
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f0f54;
/* rgb */ color: rgb(15, 15, 84);
/* oklch */ color: oklch(23.3% 0.119 272.2);
Tailwind
colors: {
  custom: {
    50: '#5c4e85',
    500: '#0f0f54',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f54;
$custom-light: #5c4e85;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f54",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 240,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23264,
    "c": 0.11933,
    "h": 272.2
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#0F0F54
secondary
#8E8E31
accent
#ED3BED
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #0F0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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