#3F126A#3F126A

#3F126A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.141 H 301.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#3F126A
RGBrgb(63, 18, 106)
HSLhsl(271, 71%, 24%)
HSVhsv(271, 83%, 42%)
CMYKcmyk(40.6%, 83%, 0%, 58.4%)
CIE-LABlab(18.05, 38.89, -41.91)
CIE-LCHlch(18.05, 57.17, 312.86°)
OKLaboklab(31.13% 0.0736 -0.1197)
OKLCHoklch(31.13% 0.141 301.6)
XYZxyz(4.8671, 2.5300, 13.8648)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F126A #3D6A12
analogous
#13126A #3F126A #6A1269
triadic
#3F126A #6A3F12 #126A3F
tetradic
#3F126A #6A1312 #3D6A12 #12696A
square
#3F126A #6A1312 #3D6A12 #12696A
split-complementary
#3F126A #696A12 #126A13
monochromatic
#10041A #200936 #3F126A #5E1B9E #7D24D3

Accessibility & contrast

On white

13.94
#3F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3F126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F126A
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F126A#FFFFFF#000000##FFFFFF
##3F126A1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#352A3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f126a;
/* rgb */ color: rgb(63, 18, 106);
/* oklch */ color: oklch(31.1% 0.141 301.6);
Tailwind
colors: {
  custom: {
    50: '#795695',
    500: '#3f126a',
    950: '#000000',
  },
}
SCSS
$custom: #3f126a;
$custom-light: #795695;
$custom-dark: #000000;
JSON
{
  "hex": "#3f126a",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 270.682,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3113,
    "c": 0.14052,
    "h": 301.6
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#3F126A
secondary
#6BA236
accent
#EE3A92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #3F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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