#3F238B#3F238B

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

Color values

HEX#3F238B
RGBrgb(63, 35, 139)
HSLhsl(256, 60%, 34%)
HSVhsv(256, 75%, 55%)
CMYKcmyk(54.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(24.07, 39.90, -53.10)
CIE-LCHlch(24.07, 66.42, 306.92°)
OKLaboklab(36.31% 0.0494 -0.1527)
OKLCHoklch(36.31% 0.16 287.9)
XYZxyz(7.3098, 4.1225, 24.8317)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F238B #6F8B23
analogous
#233B8B #3F238B #73238B
triadic
#3F238B #8B3F23 #238B3F
tetradic
#3F238B #8B233B #6F8B23 #238B73
square
#3F238B #8B233B #6F8B23 #238B73
split-complementary
#3F238B #8B7323 #3B8B23
monochromatic
#130A29 #29175A #3F238B #552FBC #7754D4

Accessibility & contrast

On white

11.51
#3F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F238B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F238B#FFFFFF#000000##FFFFFF
##3F238B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#213F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f238b;
/* rgb */ color: rgb(63, 35, 139);
/* oklch */ color: oklch(36.3% 0.160 287.9);
Tailwind
colors: {
  custom: {
    50: '#7d61ae',
    500: '#3f238b',
    950: '#000000',
  },
}
SCSS
$custom: #3f238b;
$custom-light: #7d61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f238b",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 256.154,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36313,
    "c": 0.16046,
    "h": 287.9
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#3F238B
secondary
#9CB852
accent
#E345B8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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