#0F1254#0F1254

#0F1254 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.116 H 271.5°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#0F1254
RGBrgb(15, 18, 84)
HSLhsl(237, 70%, 19%)
HSVhsv(237, 82%, 33%)
CMYKcmyk(82.1%, 78.6%, 0%, 67.1%)
CIE-LABlab(10.36, 24.70, -40.04)
CIE-LCHlch(10.36, 47.05, 301.67°)
OKLaboklab(23.76% 0.0031 -0.1159)
OKLCHoklch(23.76% 0.116 271.5)
XYZxyz(2.0130, 1.1740, 8.5063)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1254 #54510F
analogous
#0F3554 #0F1254 #2F0F54
triadic
#0F1254 #540F12 #12540F
tetradic
#0F1254 #540F35 #54510F #0F542F
square
#0F1254 #540F35 #54510F #0F542F
split-complementary
#0F1254 #542F0F #35540F
monochromatic
#05061A #060720 #0F1254 #181D88 #2228BC

Accessibility & contrast

On white

17.01
#0F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0F1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1254
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1254#FFFFFF#000000##FFFFFF
##0F12541.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001953
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0f1254;
/* rgb */ color: rgb(15, 18, 84);
/* oklch */ color: oklch(23.8% 0.116 271.5);
Tailwind
colors: {
  custom: {
    50: '#5b5085',
    500: '#0f1254',
    950: '#000000',
  },
}
SCSS
$custom: #0f1254;
$custom-light: #5b5085;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1254",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 237.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23761,
    "c": 0.11595,
    "h": 271.5
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#0F1254
secondary
#8E8A31
accent
#E53BED
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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