#150338#150338

#150338 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.094 H 290.1°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#150338
RGBrgb(21, 3, 56)
HSLhsl(260, 90%, 12%)
HSVhsv(260, 95%, 22%)
CMYKcmyk(62.5%, 94.6%, 0%, 78%)
CIE-LABlab(4.61, 22.73, -29.73)
CIE-LCHlch(4.61, 37.42, 307.39°)
OKLaboklab(18.4% 0.0325 -0.0887)
OKLCHoklch(18.4% 0.094 290.1)
XYZxyz(1.0554, 0.5100, 3.7834)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150338 #263803
analogous
#030C38 #150338 #300338
triadic
#150338 #381503 #033815
tetradic
#150338 #38030C #263803 #033830
square
#150338 #38030C #263803 #033830
split-complementary
#150338 #383003 #0C3803
monochromatic
#0B021D #0B021D #150338 #2B0672 #4109AC

Accessibility & contrast

On white

19.06
#150338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#150338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150338
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150338#FFFFFF#000000##FFFFFF
##1503381.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001139
Deuteranopia (green-blind)
#000F37
Tritanopia (blue-blind)
#07121E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #150338;
/* rgb */ color: rgb(21, 3, 56);
/* oklch */ color: oklch(18.4% 0.094 290.1);
Tailwind
colors: {
  custom: {
    50: '#57476f',
    500: '#150338',
    950: '#000000',
  },
}
SCSS
$custom: #150338;
$custom-light: #57476f;
$custom-dark: #000000;
JSON
{
  "hex": "#150338",
  "rgb": {
    "r": 21,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 260.377,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18398,
    "c": 0.09447,
    "h": 290.1
  },
  "luminance": 0.0051
}

Semantic roles & 50–950 ramp

primary
#150338
secondary
#5B7B1C
accent
#FF29B6
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #150338

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

Preview Lab → · Contrast checker → · Palette generator →

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