#38268E#38268E

#38268E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.162 H 282.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#38268E
RGBrgb(56, 38, 142)
HSLhsl(250, 58%, 35%)
HSVhsv(250, 73%, 56%)
CMYKcmyk(60.6%, 73.2%, 0%, 44.3%)
CIE-LABlab(24.26, 38.09, -54.69)
CIE-LCHlch(24.26, 66.65, 304.86°)
OKLaboklab(36.36% 0.0356 -0.1576)
OKLCHoklch(36.36% 0.162 282.7)
XYZxyz(7.2050, 4.1795, 26.0130)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38268E #7C8E26
analogous
#26488E #38268E #6C268E
triadic
#38268E #8E3826 #268E38
tetradic
#38268E #8E2648 #7C8E26 #268E6C
square
#38268E #8E2648 #7C8E26 #268E6C
split-complementary
#38268E #8E6C26 #488E26
monochromatic
#120C2D #25195E #38268E #4B33BE #705BD3

Accessibility & contrast

On white

11.44
#38268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#38268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38268E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38268E#FFFFFF#000000##FFFFFF
##38268E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38268e;
/* rgb */ color: rgb(56, 38, 142);
/* oklch */ color: oklch(36.4% 0.162 282.7);
Tailwind
colors: {
  custom: {
    50: '#7962b0',
    500: '#38268e',
    950: '#000000',
  },
}
SCSS
$custom: #38268e;
$custom-light: #7962b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38268e",
  "rgb": {
    "r": 56,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 250.385,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.16155,
    "h": 282.7
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#38268E
secondary
#A7B858
accent
#E147C6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38268E

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

Preview Lab → · Contrast checker → · Palette generator →

#38268E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva