#311452#311452

#311452 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.107 H 300.9°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#311452
RGBrgb(49, 20, 82)
HSLhsl(268, 61%, 20%)
HSVhsv(268, 76%, 32%)
CMYKcmyk(40.2%, 75.6%, 0%, 67.8%)
CIE-LABlab(14.19, 28.58, -32.28)
CIE-LCHlch(14.19, 43.11, 311.53°)
OKLaboklab(27.29% 0.055 -0.092)
OKLCHoklch(27.29% 0.107 300.9)
XYZxyz(3.0394, 1.7625, 8.1611)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311452 #355214
analogous
#141652 #311452 #501452
triadic
#311452 #523114 #145231
tetradic
#311452 #521416 #355214 #145250
square
#311452 #521416 #355214 #145250
split-complementary
#311452 #525014 #165214
monochromatic
#0F0619 #140821 #311452 #4E2083 #6C2CB4

Accessibility & contrast

On white

15.53
#311452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311452
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311452#FFFFFF#000000##FFFFFF
##3114521.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2A2331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311452;
/* rgb */ color: rgb(49, 20, 82);
/* oklch */ color: oklch(27.3% 0.107 300.9);
Tailwind
colors: {
  custom: {
    50: '#6d5483',
    500: '#311452',
    950: '#000000',
  },
}
SCSS
$custom: #311452;
$custom-light: #6d5483;
$custom-dark: #000000;
JSON
{
  "hex": "#311452",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 268.065,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.27287,
    "c": 0.10715,
    "h": 300.9
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#311452
secondary
#648A38
accent
#E44499
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311452

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

Preview Lab → · Contrast checker → · Palette generator →

#311452 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva