#38249B#38249B

#38249B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.180 H 280.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#38249B
RGBrgb(56, 36, 155)
HSLhsl(250, 62%, 37%)
HSVhsv(250, 77%, 61%)
CMYKcmyk(63.9%, 76.8%, 0%, 39.2%)
CIE-LABlab(25.16, 43.29, -61.21)
CIE-LCHlch(25.16, 74.98, 305.27°)
OKLaboklab(37.4% 0.034 -0.1766)
OKLCHoklch(37.4% 0.18 280.9)
XYZxyz(8.1763, 4.4684, 31.4356)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38249B #879B24
analogous
#244B9B #38249B #74249B
triadic
#38249B #9B3824 #249B38
tetradic
#38249B #9B244B #879B24 #249B74
square
#38249B #9B244B #879B24 #249B74
split-complementary
#38249B #9B7424 #4B9B24
monochromatic
#140D38 #261869 #38249B #4A30CD #745FDA

Accessibility & contrast

On white

11.09
#38249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#38249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38249B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38249B#FFFFFF#000000##FFFFFF
##38249B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38249b;
/* rgb */ color: rgb(56, 36, 155);
/* oklch */ color: oklch(37.4% 0.180 280.9);
Tailwind
colors: {
  custom: {
    50: '#7c62ba',
    500: '#38249b',
    950: '#000000',
  },
}
SCSS
$custom: #38249b;
$custom-light: #7c62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38249b",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 250.084,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.17987,
    "h": 280.9
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#38249B
secondary
#AEBF5C
accent
#E542CA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38249B

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

Preview Lab → · Contrast checker → · Palette generator →

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