#38228B#38228B

#38228B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.162 H 284.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#38228B
RGBrgb(56, 34, 139)
HSLhsl(253, 61%, 34%)
HSVhsv(253, 76%, 55%)
CMYKcmyk(59.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(23.16, 39.38, -54.62)
CIE-LCHlch(23.16, 67.34, 305.79°)
OKLaboklab(35.5% 0.0395 -0.1573)
OKLCHoklch(35.5% 0.162 284.1)
XYZxyz(6.8617, 3.8485, 24.8023)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38228B #758B22
analogous
#22418B #38228B #6D228B
triadic
#38228B #8B3822 #228B38
tetradic
#38228B #8B2241 #758B22 #228B6D
square
#38228B #8B2241 #758B22 #228B6D
split-complementary
#38228B #8B6D22 #418B22
monochromatic
#100A29 #24165A #38228B #4C2EBC #6E53D5

Accessibility & contrast

On white

11.87
#38228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#38228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38228B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38228B#FFFFFF#000000##FFFFFF
##38228B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#073F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38228b;
/* rgb */ color: rgb(56, 34, 139);
/* oklch */ color: oklch(35.5% 0.162 284.1);
Tailwind
colors: {
  custom: {
    50: '#7960ae',
    500: '#38228b',
    950: '#000000',
  },
}
SCSS
$custom: #38228b;
$custom-light: #7960ae;
$custom-dark: #000000;
JSON
{
  "hex": "#38228b",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 252.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35499,
    "c": 0.16222,
    "h": 284.1
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#38228B
secondary
#A3B850
accent
#E444C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38228B

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

Preview Lab → · Contrast checker → · Palette generator →

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