#0F0840#0F0840

#0F0840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.7% C 0.099 H 277.9°. Best body text is #FFFFFF at 18.60:1 contrast (WCAG AA passes).

Color values

HEX#0F0840
RGBrgb(15, 8, 64)
HSLhsl(248, 78%, 14%)
HSVhsv(248, 88%, 25%)
CMYKcmyk(76.6%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.83, 22.62, -33.55)
CIE-LCHlch(5.83, 40.47, 303.99°)
OKLaboklab(19.66% 0.0136 -0.0981)
OKLCHoklch(19.66% 0.099 277.9)
XYZxyz(1.2089, 0.6453, 4.9103)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0840 #394008
analogous
#081D40 #0F0840 #2B0840
triadic
#0F0840 #400F08 #08400F
tetradic
#0F0840 #40081D #394008 #08402B
square
#0F0840 #40081D #394008 #08402B
split-complementary
#0F0840 #402B08 #1D4008
monochromatic
#06031B #06031B #0F0840 #1C0F76 #2916AD

Accessibility & contrast

On white

18.60
#0F0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0F0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0840
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0840#FFFFFF#000000##FFFFFF
##0F08401.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0f0840;
/* rgb */ color: rgb(15, 8, 64);
/* oklch */ color: oklch(19.7% 0.099 277.9);
Tailwind
colors: {
  custom: {
    50: '#564975',
    500: '#0f0840',
    950: '#000000',
  },
}
SCSS
$custom: #0f0840;
$custom-light: #564975;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0840",
  "rgb": {
    "r": 15,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 247.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19659,
    "c": 0.09902,
    "h": 277.9
  },
  "luminance": 0.00645
}

Semantic roles & 50–950 ramp

primary
#0F0840
secondary
#737E25
accent
#F434DC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0F0840

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

Preview Lab → · Contrast checker → · Palette generator →

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