#42268B#42268B

#42268B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.157 H 289.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#42268B
RGBrgb(66, 38, 139)
HSLhsl(257, 57%, 35%)
HSVhsv(257, 73%, 55%)
CMYKcmyk(52.5%, 72.7%, 0%, 45.5%)
CIE-LABlab(24.98, 38.77, -51.61)
CIE-LCHlch(24.98, 64.55, 306.91°)
OKLaboklab(37.03% 0.0513 -0.1482)
OKLCHoklch(37.03% 0.157 289.1)
XYZxyz(7.5987, 4.4082, 24.8716)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42268B #6F8B26
analogous
#263C8B #42268B #75268B
triadic
#42268B #8B4226 #268B42
tetradic
#42268B #8B263C #6F8B26 #268B75
square
#42268B #8B263C #6F8B26 #268B75
split-complementary
#42268B #8B7526 #3C8B26
monochromatic
#140C2B #2B195B #42268B #5933BB #7B5AD2

Accessibility & contrast

On white

11.16
#42268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#42268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42268B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42268B#FFFFFF#000000##FFFFFF
##42268B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#284056
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42268b;
/* rgb */ color: rgb(66, 38, 139);
/* oklch */ color: oklch(37.0% 0.157 289.1);
Tailwind
colors: {
  custom: {
    50: '#7e63ae',
    500: '#42268b',
    950: '#000000',
  },
}
SCSS
$custom: #42268b;
$custom-light: #7e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42268b",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 256.634,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.15682,
    "h": 289.1
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#42268B
secondary
#9CB756
accent
#E047B6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42268B

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

Preview Lab → · Contrast checker → · Palette generator →

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