#0F0540#0F0540

#0F0540 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.103 H 278.8°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#0F0540
RGBrgb(15, 5, 64)
HSLhsl(250, 86%, 14%)
HSVhsv(250, 92%, 25%)
CMYKcmyk(76.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(5.24, 24.10, -34.51)
CIE-LCHlch(5.24, 42.10, 304.93°)
OKLaboklab(19.14% 0.0157 -0.1016)
OKLCHoklch(19.14% 0.103 278.8)
XYZxyz(1.1764, 0.5802, 4.8995)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0540 #364005
analogous
#051840 #0F0540 #2C0540
triadic
#0F0540 #400F05 #05400F
tetradic
#0F0540 #400518 #364005 #05402C
square
#0F0540 #400518 #364005 #05402C
split-complementary
#0F0540 #402C05 #184005
monochromatic
#07021C #07021C #0F0540 #1C0979 #2A0EB2

Accessibility & contrast

On white

18.82
#0F0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0F0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0540
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0540#FFFFFF#000000##FFFFFF
##0F05401.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f0540;
/* rgb */ color: rgb(15, 5, 64);
/* oklch */ color: oklch(19.1% 0.103 278.8);
Tailwind
colors: {
  custom: {
    50: '#564876',
    500: '#0f0540',
    950: '#000000',
  },
}
SCSS
$custom: #0f0540;
$custom-light: #564876;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0540",
  "rgb": {
    "r": 15,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 250.169,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19136,
    "c": 0.10286,
    "h": 278.8
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#0F0540
secondary
#708120
accent
#FC2CD9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0F0540

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

Preview Lab → · Contrast checker → · Palette generator →

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