#332DC8#332DC8

#332DC8 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.226 H 273.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#332DC8
RGBrgb(51, 45, 200)
HSLhsl(242, 63%, 48%)
HSVhsv(242, 78%, 78%)
CMYKcmyk(74.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(31.23, 52.21, -78.11)
CIE-LCHlch(31.23, 93.95, 303.76°)
OKLaboklab(42.98% 0.0121 -0.226)
OKLCHoklch(42.98% 0.226 273.1)
XYZxyz(12.7255, 6.7494, 55.2645)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DC8 #C2C82D
analogous
#2D74C8 #332DC8 #812DC8
triadic
#332DC8 #C8332D #2DC833
tetradic
#332DC8 #C82D74 #C2C82D #2DC881
square
#332DC8 #C82D74 #C2C82D #2DC881
split-complementary
#332DC8 #C8812D #74C82D
monochromatic
#1A1764 #262296 #332DC8 #5E59DA #8E8BE5

Accessibility & contrast

On white

8.94
#332DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#332DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DC8
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DC8#FFFFFF#000000##FFFFFF
##332DC81.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0042C5
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #332dc8;
/* rgb */ color: rgb(51, 45, 200);
/* oklch */ color: oklch(43.0% 0.226 273.1);
Tailwind
colors: {
  custom: {
    50: '#8369da',
    500: '#332dc8',
    950: '#000000',
  },
}
SCSS
$custom: #332dc8;
$custom-light: #8369da;
$custom-dark: #000000;
JSON
{
  "hex": "#332dc8",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 242.323,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4298,
    "c": 0.22633,
    "h": 273.1
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#332DC8
secondary
#CCCF82
accent
#E641E0
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #332DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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