#311455#311455

#311455 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.111 H 299.4°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#311455
RGBrgb(49, 20, 85)
HSLhsl(267, 62%, 21%)
HSVhsv(267, 76%, 33%)
CMYKcmyk(42.4%, 76.5%, 0%, 66.7%)
CIE-LABlab(14.45, 29.45, -33.89)
CIE-LCHlch(14.45, 44.90, 310.99°)
OKLaboklab(27.56% 0.0544 -0.0967)
OKLCHoklch(27.56% 0.111 299.4)
XYZxyz(3.1561, 1.8091, 8.7755)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311455 #385514
analogous
#141755 #311455 #511455
triadic
#311455 #553114 #145531
tetradic
#311455 #551417 #385514 #145551
square
#311455 #551417 #385514 #145551
split-complementary
#311455 #555114 #175514
monochromatic
#0E0619 #140823 #311455 #4E2087 #6A2BB8

Accessibility & contrast

On white

15.42
#311455 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311455 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311455
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311455#FFFFFF#000000##FFFFFF
##3114551.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#292433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311455;
/* rgb */ color: rgb(49, 20, 85);
/* oklch */ color: oklch(27.6% 0.111 299.4);
Tailwind
colors: {
  custom: {
    50: '#6d5485',
    500: '#311455',
    950: '#000000',
  },
}
SCSS
$custom: #311455;
$custom-light: #6d5485;
$custom-dark: #000000;
JSON
{
  "hex": "#311455",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 85
  },
  "hsl": {
    "h": 266.769,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.11097,
    "h": 299.4
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#311455
secondary
#678D38
accent
#E5439D
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311455

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

Preview Lab → · Contrast checker → · Palette generator →

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