#332ECF#332ECF

#332ECF is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.9% C 0.234 H 272.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#332ECF
RGBrgb(51, 46, 207)
HSLhsl(242, 64%, 50%)
HSVhsv(242, 78%, 81%)
CMYKcmyk(75.4%, 77.8%, 0%, 18.8%)
CIE-LABlab(32.17, 53.89, -80.63)
CIE-LCHlch(32.17, 96.98, 303.76°)
OKLaboklab(43.86% 0.0103 -0.2333)
OKLCHoklch(43.86% 0.234 272.5)
XYZxyz(13.6009, 7.1613, 59.6849)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332ECF #CACF2E
analogous
#2E7ACF #332ECF #832ECF
triadic
#332ECF #CF332E #2ECF33
tetradic
#332ECF #CF2E7A #CACF2E #2ECF83
square
#332ECF #CF2E7A #CACF2E #2ECF83
split-complementary
#332ECF #CF832E #7ACF2E
monochromatic
#1A186B #27239D #332ECF #635FDB #9491E7

Accessibility & contrast

On white

8.63
#332ECF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#332ECF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332ECF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332ECF#FFFFFF#000000##FFFFFF
##332ECF1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D4
Deuteranopia (green-blind)
#0044CC
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #332ecf;
/* rgb */ color: rgb(51, 46, 207);
/* oklch */ color: oklch(43.9% 0.234 272.5);
Tailwind
colors: {
  custom: {
    50: '#846adf',
    500: '#332ecf',
    950: '#000000',
  },
}
SCSS
$custom: #332ecf;
$custom-light: #846adf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ecf",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 241.863,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.43864,
    "c": 0.23357,
    "h": 272.5
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#332ECF
secondary
#CFD188
accent
#E741E2
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #332ECF

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

Preview Lab → · Contrast checker → · Palette generator →

#332ECF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva