#3B238F#3B238F

#3B238F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.166 H 284.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3B238F
RGBrgb(59, 35, 143)
HSLhsl(253, 61%, 35%)
HSVhsv(253, 76%, 56%)
CMYKcmyk(58.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(24.05, 40.51, -55.65)
CIE-LCHlch(24.05, 68.83, 306.05°)
OKLaboklab(36.31% 0.0423 -0.1603)
OKLCHoklch(36.31% 0.166 284.8)
XYZxyz(7.3611, 4.1146, 26.3876)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B238F #778F23
analogous
#23418F #3B238F #71238F
triadic
#3B238F #8F3B23 #238F3B
tetradic
#3B238F #8F2341 #778F23 #238F71
square
#3B238F #8F2341 #778F23 #238F71
split-complementary
#3B238F #8F7123 #418F23
monochromatic
#120B2D #27175E #3B238F #4F2FC0 #7357D6

Accessibility & contrast

On white

11.52
#3B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B238F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B238F#FFFFFF#000000##FFFFFF
##3B238F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#0E4157
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b238f;
/* rgb */ color: rgb(59, 35, 143);
/* oklch */ color: oklch(36.3% 0.166 284.8);
Tailwind
colors: {
  custom: {
    50: '#7b61b1',
    500: '#3b238f',
    950: '#000000',
  },
}
SCSS
$custom: #3b238f;
$custom-light: #7b61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b238f",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 253.333,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36314,
    "c": 0.16574,
    "h": 284.8
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#3B238F
secondary
#A3BA54
accent
#E444C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B238F

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

Preview Lab → · Contrast checker → · Palette generator →

#3B238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva