#150340#150340

#150340 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.105 H 285.9°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#150340
RGBrgb(21, 3, 64)
HSLhsl(258, 91%, 13%)
HSVhsv(258, 95%, 25%)
CMYKcmyk(67.2%, 95.3%, 0%, 74.9%)
CIE-LABlab(5.37, 26.44, -34.28)
CIE-LCHlch(5.37, 43.29, 307.64°)
OKLaboklab(19.42% 0.0287 -0.1005)
OKLCHoklch(19.42% 0.105 285.9)
XYZxyz(1.2670, 0.5946, 4.8975)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150340 #2E4003
analogous
#030F40 #150340 #330340
triadic
#150340 #401503 #034015
tetradic
#150340 #40030F #2E4003 #034033
square
#150340 #40030F #2E4003 #034033
split-complementary
#150340 #403303 #0F4003
monochromatic
#0A011D #0A011D #150340 #28067A #3B08B5

Accessibility & contrast

On white

18.77
#150340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#150340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150340
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150340#FFFFFF#000000##FFFFFF
##1503401.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#00103F
Tritanopia (blue-blind)
#011622
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #150340;
/* rgb */ color: rgb(21, 3, 64);
/* oklch */ color: oklch(19.4% 0.105 285.9);
Tailwind
colors: {
  custom: {
    50: '#594776',
    500: '#150340',
    950: '#000000',
  },
}
SCSS
$custom: #150340;
$custom-light: #594776;
$custom-dark: #000000;
JSON
{
  "hex": "#150340",
  "rgb": {
    "r": 21,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 257.705,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19421,
    "c": 0.10453,
    "h": 285.9
  },
  "luminance": 0.00595
}

Semantic roles & 50–950 ramp

primary
#150340
secondary
#64821D
accent
#FF29C0
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #150340

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

Preview Lab → · Contrast checker → · Palette generator →

#150340 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva