#3F126F#3F126F

#3F126F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.146 H 299.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#3F126F
RGBrgb(63, 18, 111)
HSLhsl(269, 72%, 25%)
HSVhsv(269, 84%, 44%)
CMYKcmyk(43.2%, 83.8%, 0%, 56.5%)
CIE-LABlab(18.53, 40.19, -44.39)
CIE-LCHlch(18.53, 59.88, 312.16°)
OKLaboklab(31.61% 0.072 -0.127)
OKLCHoklch(31.61% 0.146 299.6)
XYZxyz(5.1347, 2.6370, 15.2743)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F126F #426F12
analogous
#12146F #3F126F #6D126F
triadic
#3F126F #6F3F12 #126F3F
tetradic
#3F126F #6F1214 #426F12 #126F6D
square
#3F126F #6F1214 #426F12 #126F6D
split-complementary
#3F126F #6F6D12 #146F12
monochromatic
#0F041A #21093A #3F126F #5D1BA4 #7B23D8

Accessibility & contrast

On white

13.75
#3F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3F126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F126F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F126F#FFFFFF#000000##FFFFFF
##3F126F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#332C41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f126f;
/* rgb */ color: rgb(63, 18, 111);
/* oklch */ color: oklch(31.6% 0.146 299.6);
Tailwind
colors: {
  custom: {
    50: '#7a5699',
    500: '#3f126f',
    950: '#000000',
  },
}
SCSS
$custom: #3f126f;
$custom-light: #7a5699;
$custom-dark: #000000;
JSON
{
  "hex": "#3f126f",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 269.032,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.14599,
    "h": 299.6
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#3F126F
secondary
#70A637
accent
#EF3997
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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