#42345F#42345F

#42345F is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.1% C 0.074 H 297.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#42345F
RGBrgb(66, 52, 95)
HSLhsl(260, 29%, 29%)
HSVhsv(260, 45%, 37%)
CMYKcmyk(30.5%, 45.3%, 0%, 62.7%)
CIE-LABlab(25.08, 16.80, -23.41)
CIE-LCHlch(25.08, 28.82, 305.67°)
OKLaboklab(36.09% 0.0342 -0.0655)
OKLCHoklch(36.09% 0.074 297.6)
XYZxyz(5.5398, 4.4404, 11.3895)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42345F #515F34
analogous
#343C5F #42345F #58345F
triadic
#42345F #5F4234 #345F42
tetradic
#42345F #5F343C #515F34 #345F58
square
#42345F #5F343C #515F34 #345F58
split-complementary
#42345F #5F5834 #3C5F34
monochromatic
#0E0B14 #271E37 #42345F #5D4A87 #7A64AA

Accessibility & contrast

On white

11.12
#42345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#42345F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42345F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42345F#FFFFFF#000000##FFFFFF
##42345F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283C61
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#3C3C45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42345f;
/* rgb */ color: rgb(66, 52, 95);
/* oklch */ color: oklch(36.1% 0.074 297.6);
Tailwind
colors: {
  custom: {
    50: '#786b8c',
    500: '#42345f',
    950: '#000000',
  },
}
SCSS
$custom: #42345f;
$custom-light: #786b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#42345f",
  "rgb": {
    "r": 66,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 259.535,
    "s": 29.252,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.07391,
    "h": 297.6
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#42345F
secondary
#80905F
accent
#C662A5
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060C
muted
#7B7A7D

Preview Lab

Preview with #42345F

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

Preview Lab → · Contrast checker → · Palette generator →

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