#38227B#38227B

#38227B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.142 H 287.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#38227B
RGBrgb(56, 34, 123)
HSLhsl(255, 57%, 31%)
HSVhsv(255, 72%, 48%)
CMYKcmyk(54.5%, 72.4%, 0%, 51.8%)
CIE-LABlab(21.63, 34.38, -47.05)
CIE-LCHlch(21.63, 58.27, 306.15°)
OKLaboklab(33.94% 0.043 -0.1352)
OKLCHoklch(33.94% 0.142 287.7)
XYZxyz(5.7770, 3.4146, 19.0897)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38227B #657B22
analogous
#22397B #38227B #64227B
triadic
#38227B #7B3822 #227B38
tetradic
#38227B #7B2239 #657B22 #227B64
square
#38227B #7B2239 #657B22 #227B64
split-complementary
#38227B #7B6422 #397B22
monochromatic
#0C071B #22154B #38227B #4E2FAB #6B4ACD

Accessibility & contrast

On white

12.48
#38227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38227B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38227B#FFFFFF#000000##FFFFFF
##38227B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#1E394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38227b;
/* rgb */ color: rgb(56, 34, 123);
/* oklch */ color: oklch(33.9% 0.142 287.7);
Tailwind
colors: {
  custom: {
    50: '#765fa2',
    500: '#38227b',
    950: '#000000',
  },
}
SCSS
$custom: #38227b;
$custom-light: #765fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#38227b",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 254.831,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.14186,
    "h": 287.7
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#38227B
secondary
#95AE4B
accent
#E048BA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38227B

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

Preview Lab → · Contrast checker → · Palette generator →

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