#331AEC#331AEC

#331AEC is a mid, highly saturated blue. Relative luminance 0.075; OKLCH L 45.4% C 0.278 H 271.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#331AEC
RGBrgb(51, 26, 236)
HSLhsl(247, 85%, 51%)
HSVhsv(247, 89%, 93%)
CMYKcmyk(78.4%, 89%, 0%, 7.5%)
CIE-LABlab(32.91, 70.16, -96.06)
CIE-LCHlch(32.91, 118.96, 306.14°)
OKLaboklab(45.35% 0.0074 -0.2776)
OKLCHoklch(45.35% 0.278 271.5)
XYZxyz(16.8699, 7.4968, 79.8985)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331AEC #D3EC1A
analogous
#1A6AEC #331AEC #9C1AEC
triadic
#331AEC #EC331A #1AEC33
tetradic
#331AEC #EC1A6A #D3EC1A #1AEC9C
square
#331AEC #EC1A6A #D3EC1A #1AEC9C
split-complementary
#331AEC #EC9C1A #6AEC1A
monochromatic
#190B81 #240FB9 #331AEC #6553F1 #988BF5

Accessibility & contrast

On white

8.40
#331AEC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#331AEC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331AEC
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331AEC#FFFFFF#000000##FFFFFF
##331AEC1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057F1
Deuteranopia (green-blind)
#0043E9
Tritanopia (blue-blind)
#00658C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #331aec;
/* rgb */ color: rgb(51, 26, 236);
/* oklch */ color: oklch(45.4% 0.278 271.5);
Tailwind
colors: {
  custom: {
    50: '#8c63f4',
    500: '#331aec',
    950: '#000000',
  },
}
SCSS
$custom: #331aec;
$custom-light: #8c63f4;
$custom-dark: #000000;
JSON
{
  "hex": "#331aec",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 236
  },
  "hsl": {
    "h": 247.143,
    "s": 84.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.45351,
    "c": 0.27775,
    "h": 271.5
  },
  "luminance": 0.07499
}

Semantic roles & 50–950 ramp

primary
#331AEC
secondary
#D4DF83
accent
#FB2DE2
background
#F9F6FF
surface
#F2EBFF
border
#CCC6D7
text
#0F0617
muted
#7E7A85

Preview Lab

Preview with #331AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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