#42279B#42279B

#42279B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.175 H 285.5°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#42279B
RGBrgb(66, 39, 155)
HSLhsl(254, 60%, 38%)
HSVhsv(254, 75%, 61%)
CMYKcmyk(57.4%, 74.8%, 0%, 39.2%)
CIE-LABlab(26.66, 43.04, -58.71)
CIE-LCHlch(26.66, 72.80, 306.24°)
OKLaboklab(38.68% 0.0468 -0.169)
OKLCHoklch(38.68% 0.175 285.5)
XYZxyz(8.8869, 4.9753, 31.4960)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42279B #809B27
analogous
#27469B #42279B #7C279B
triadic
#42279B #9B4227 #279B42
tetradic
#42279B #9B2746 #809B27 #279B7C
square
#42279B #9B2746 #809B27 #279B7C
split-complementary
#42279B #9B7C27 #469B27
monochromatic
#180E39 #2D1B6A #42279B #5733CC #7F64D8

Accessibility & contrast

On white

10.53
#42279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#42279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42279B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42279B#FFFFFF#000000##FFFFFF
##42279B1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#16475F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42279b;
/* rgb */ color: rgb(66, 39, 155);
/* oklch */ color: oklch(38.7% 0.175 285.5);
Tailwind
colors: {
  custom: {
    50: '#8164ba',
    500: '#42279b',
    950: '#000000',
  },
}
SCSS
$custom: #42279b;
$custom-light: #8164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42279b",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 253.966,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38684,
    "c": 0.17537,
    "h": 285.5
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#42279B
secondary
#A8BE60
accent
#E345BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42279B

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

Preview Lab → · Contrast checker → · Palette generator →

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