#332783#332783

#332783 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.147 H 281.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#332783
RGBrgb(51, 39, 131)
HSLhsl(248, 54%, 33%)
HSVhsv(248, 70%, 51%)
CMYKcmyk(61.1%, 70.2%, 0%, 48.6%)
CIE-LABlab(22.98, 33.13, -49.94)
CIE-LCHlch(22.98, 59.93, 303.56°)
OKLaboklab(35.02% 0.0295 -0.1438)
OKLCHoklch(35.02% 0.147 281.6)
XYZxyz(6.1862, 3.7931, 21.8745)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332783 #778327
analogous
#274983 #332783 #612783
triadic
#332783 #833327 #278333
tetradic
#332783 #832749 #778327 #278361
square
#332783 #832749 #778327 #278361
split-complementary
#332783 #836127 #498327
monochromatic
#0E0B25 #211954 #332783 #4535B2 #6757CD

Accessibility & contrast

On white

11.94
#332783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#332783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332783
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332783#FFFFFF#000000##FFFFFF
##3327831.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332783;
/* rgb */ color: rgb(51, 39, 131);
/* oklch */ color: oklch(35.0% 0.147 281.6);
Tailwind
colors: {
  custom: {
    50: '#7462a8',
    500: '#332783',
    950: '#000000',
  },
}
SCSS
$custom: #332783;
$custom-light: #7462a8;
$custom-dark: #000000;
JSON
{
  "hex": "#332783",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 247.826,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35015,
    "c": 0.14681,
    "h": 281.6
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#332783
secondary
#A6B254
accent
#DD4ACA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332783

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

Preview Lab → · Contrast checker → · Palette generator →

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