#3F248C#3F248C

#3F248C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.161 H 287.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3F248C
RGBrgb(63, 36, 140)
HSLhsl(256, 59%, 35%)
HSVhsv(256, 74%, 55%)
CMYKcmyk(55%, 74.3%, 0%, 45.1%)
CIE-LABlab(24.36, 39.67, -53.26)
CIE-LCHlch(24.36, 66.40, 306.68°)
OKLaboklab(36.55% 0.0483 -0.1531)
OKLCHoklch(36.55% 0.161 287.5)
XYZxyz(7.4130, 4.2116, 25.2282)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F248C #718C24
analogous
#243D8C #3F248C #73248C
triadic
#3F248C #8C3F24 #248C3F
tetradic
#3F248C #8C243D #718C24 #248C73
square
#3F248C #8C243D #718C24 #248C73
split-complementary
#3F248C #8C7324 #3D8C24
monochromatic
#130B2B #29175B #3F248C #5531BD #7757D4

Accessibility & contrast

On white

11.40
#3F248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F248C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F248C#FFFFFF#000000##FFFFFF
##3F248C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#204056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f248c;
/* rgb */ color: rgb(63, 36, 140);
/* oklch */ color: oklch(36.5% 0.161 287.5);
Tailwind
colors: {
  custom: {
    50: '#7d61af',
    500: '#3f248c',
    950: '#000000',
  },
}
SCSS
$custom: #3f248c;
$custom-light: #7d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f248c",
  "rgb": {
    "r": 63,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 255.577,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36545,
    "c": 0.16055,
    "h": 287.5
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#3F248C
secondary
#9EB854
accent
#E246BA
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F248C

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

Preview Lab → · Contrast checker → · Palette generator →

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