#331EAC#331EAC

#331EAC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.206 H 277.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#331EAC
RGBrgb(51, 30, 172)
HSLhsl(249, 70%, 40%)
HSVhsv(249, 83%, 67%)
CMYKcmyk(70.3%, 82.6%, 0%, 32.5%)
CIE-LABlab(25.59, 50.90, -70.83)
CIE-LCHlch(25.59, 87.22, 305.70°)
OKLaboklab(38.14% 0.025 -0.2047)
OKLCHoklch(38.14% 0.206 277)
XYZxyz(9.2735, 4.6101, 39.4228)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331EAC #97AC1E
analogous
#1E50AC #331EAC #7A1EAC
triadic
#331EAC #AC331E #1EAC33
tetradic
#331EAC #AC1E50 #97AC1E #1EAC7A
square
#331EAC #AC1E50 #97AC1E #1EAC7A
split-complementary
#331EAC #AC7A1E #50AC1E
monochromatic
#140C44 #241578 #331EAC #472DDA #7461E3

Accessibility & contrast

On white

10.92
#331EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#331EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331EAC
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331EAC#FFFFFF#000000##FFFFFF
##331EAC1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0037AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #331eac;
/* rgb */ color: rgb(51, 30, 172);
/* oklch */ color: oklch(38.1% 0.206 277.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fc6',
    500: '#331eac',
    950: '#000000',
  },
}
SCSS
$custom: #331eac;
$custom-light: #7e5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#331eac",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 248.873,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3814,
    "c": 0.2062,
    "h": 277
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#331EAC
secondary
#B8C85E
accent
#ED3BD3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #331EAC

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

Preview Lab → · Contrast checker → · Palette generator →

#331EAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva