#38267B#38267B

#38267B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.6% C 0.137 H 286.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#38267B
RGBrgb(56, 38, 123)
HSLhsl(253, 53%, 32%)
HSVhsv(253, 69%, 48%)
CMYKcmyk(54.5%, 69.1%, 0%, 51.8%)
CIE-LABlab(22.50, 31.99, -45.63)
CIE-LCHlch(22.50, 55.73, 305.03°)
OKLaboklab(34.57% 0.0391 -0.131)
OKLCHoklch(34.57% 0.137 286.6)
XYZxyz(5.8981, 3.6567, 19.1301)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38267B #697B26
analogous
#263F7B #38267B #63267B
triadic
#38267B #7B3826 #267B38
tetradic
#38267B #7B263F #697B26 #267B63
square
#38267B #7B263F #697B26 #267B63
split-complementary
#38267B #7B6326 #3F7B26
monochromatic
#0D091D #23184C #38267B #4D34AA #6B52CA

Accessibility & contrast

On white

12.13
#38267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#38267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38267B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38267B#FFFFFF#000000##FFFFFF
##38267B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#1E3B4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #38267b;
/* rgb */ color: rgb(56, 38, 123);
/* oklch */ color: oklch(34.6% 0.137 286.6);
Tailwind
colors: {
  custom: {
    50: '#7662a2',
    500: '#38267b',
    950: '#000000',
  },
}
SCSS
$custom: #38267b;
$custom-light: #7662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38267b",
  "rgb": {
    "r": 56,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 252.706,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.13671,
    "h": 286.6
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#38267B
secondary
#99AD50
accent
#DC4CBE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38267B

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

Preview Lab → · Contrast checker → · Palette generator →

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