#38276F#38276F

#38276F is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.7% C 0.119 H 289.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#38276F
RGBrgb(56, 39, 111)
HSLhsl(254, 48%, 29%)
HSVhsv(254, 65%, 44%)
CMYKcmyk(49.5%, 64.9%, 0%, 56.5%)
CIE-LABlab(21.72, 27.51, -39.22)
CIE-LCHlch(21.72, 47.91, 305.05°)
OKLaboklab(33.69% 0.0393 -0.1121)
OKLCHoklch(33.69% 0.119 289.3)
XYZxyz(5.2248, 3.4393, 15.4244)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38276F #5E6F27
analogous
#273A6F #38276F #5C276F
triadic
#38276F #6F3827 #276F38
tetradic
#38276F #6F273A #5E6F27 #276F5C
square
#38276F #6F273A #5E6F27 #276F5C
split-complementary
#38276F #6F5C27 #3A6F27
monochromatic
#0B0817 #211742 #38276F #4F379C #6A4FC1

Accessibility & contrast

On white

12.44
#38276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#38276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38276F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38276F#FFFFFF#000000##FFFFFF
##38276F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#263847
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38276f;
/* rgb */ color: rgb(56, 39, 111);
/* oklch */ color: oklch(33.7% 0.119 289.3);
Tailwind
colors: {
  custom: {
    50: '#746299',
    500: '#38276f',
    950: '#000000',
  },
}
SCSS
$custom: #38276f;
$custom-light: #746299;
$custom-dark: #000000;
JSON
{
  "hex": "#38276f",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 254.167,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.11883,
    "h": 289.3
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#38276F
secondary
#8EA250
accent
#D850B8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #38276F

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

Preview Lab → · Contrast checker → · Palette generator →

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