#35238B#35238B

#35238B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.162 H 282.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#35238B
RGBrgb(53, 35, 139)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 55%)
CMYKcmyk(61.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.08, 38.40, -54.78)
CIE-LCHlch(23.08, 66.90, 305.03°)
OKLaboklab(35.37% 0.0342 -0.1579)
OKLCHoklch(35.37% 0.162 282.2)
XYZxyz(6.7280, 3.8226, 24.8044)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35238B #798B23
analogous
#23458B #35238B #69238B
triadic
#35238B #8B3523 #238B35
tetradic
#35238B #8B2345 #798B23 #238B69
square
#35238B #8B2345 #798B23 #238B69
split-complementary
#35238B #8B6923 #458B23
monochromatic
#100A29 #22175A #35238B #482FBC #6A54D4

Accessibility & contrast

On white

11.90
#35238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#35238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35238B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35238B#FFFFFF#000000##FFFFFF
##35238B1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #35238b;
/* rgb */ color: rgb(53, 35, 139);
/* oklch */ color: oklch(35.4% 0.162 282.2);
Tailwind
colors: {
  custom: {
    50: '#7760ae',
    500: '#35238b',
    950: '#000000',
  },
}
SCSS
$custom: #35238b;
$custom-light: #7760ae;
$custom-dark: #000000;
JSON
{
  "hex": "#35238b",
  "rgb": {
    "r": 53,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 250.385,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35367,
    "c": 0.16155,
    "h": 282.2
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#35238B
secondary
#A6B852
accent
#E345C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35238B

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

Preview Lab → · Contrast checker → · Palette generator →

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