#382285#382285

#382285 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.155 H 285.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#382285
RGBrgb(56, 34, 133)
HSLhsl(253, 59%, 33%)
HSVhsv(253, 74%, 52%)
CMYKcmyk(57.9%, 74.4%, 0%, 47.8%)
CIE-LABlab(22.58, 37.51, -51.83)
CIE-LCHlch(22.58, 63.98, 305.89°)
OKLaboklab(34.91% 0.0409 -0.1492)
OKLCHoklch(34.91% 0.155 285.3)
XYZxyz(6.4353, 3.6779, 22.5566)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382285 #6F8522
analogous
#223E85 #382285 #692285
triadic
#382285 #853822 #228538
tetradic
#382285 #85223E #6F8522 #228569
square
#382285 #85223E #6F8522 #228569
split-complementary
#382285 #856922 #3E8522
monochromatic
#0F0924 #231654 #382285 #4D2EB6 #6C4FD2

Accessibility & contrast

On white

12.10
#382285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#382285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382285
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382285#FFFFFF#000000##FFFFFF
##3822851.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#133D51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382285;
/* rgb */ color: rgb(56, 34, 133);
/* oklch */ color: oklch(34.9% 0.155 285.3);
Tailwind
colors: {
  custom: {
    50: '#785fa9',
    500: '#382285',
    950: '#000000',
  },
}
SCSS
$custom: #382285;
$custom-light: #785fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#382285",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 253.333,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.15468,
    "h": 285.3
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#382285
secondary
#9EB64D
accent
#E245C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382285

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

Preview Lab → · Contrast checker → · Palette generator →

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