#42268F#42268F

#42268F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.162 H 288.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#42268F
RGBrgb(66, 38, 143)
HSLhsl(256, 58%, 35%)
HSVhsv(256, 73%, 56%)
CMYKcmyk(53.8%, 73.4%, 0%, 43.9%)
CIE-LABlab(25.34, 39.97, -53.49)
CIE-LCHlch(25.34, 66.78, 306.77°)
OKLaboklab(37.4% 0.0504 -0.1537)
OKLCHoklch(37.4% 0.162 288.2)
XYZxyz(7.8963, 4.5273, 26.4391)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42268F #738F26
analogous
#263E8F #42268F #76268F
triadic
#42268F #8F4226 #268F42
tetradic
#42268F #8F263E #738F26 #268F76
square
#42268F #8F263E #738F26 #268F76
split-complementary
#42268F #8F7626 #3E8F26
monochromatic
#150C2E #2C195F #42268F #5833BF #7C5CD4

Accessibility & contrast

On white

11.02
#42268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#42268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42268F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42268F#FFFFFF#000000##FFFFFF
##42268F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#244258
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42268f;
/* rgb */ color: rgb(66, 38, 143);
/* oklch */ color: oklch(37.4% 0.162 288.2);
Tailwind
colors: {
  custom: {
    50: '#7f63b1',
    500: '#42268f',
    950: '#000000',
  },
}
SCSS
$custom: #42268f;
$custom-light: #7f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42268f",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 256,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37404,
    "c": 0.16179,
    "h": 288.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#42268F
secondary
#9FB958
accent
#E147B8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42268F

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

Preview Lab → · Contrast checker → · Palette generator →

#42268F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva