#332C83#332C83

#332C83 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.140 H 280.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#332C83
RGBrgb(51, 44, 131)
HSLhsl(245, 50%, 34%)
HSVhsv(245, 66%, 51%)
CMYKcmyk(61.1%, 66.4%, 0%, 48.6%)
CIE-LABlab(24.14, 29.99, -48.03)
CIE-LCHlch(24.14, 56.63, 301.98°)
OKLaboklab(35.86% 0.0249 -0.1382)
OKLCHoklch(35.86% 0.14 280.2)
XYZxyz(6.3614, 4.1434, 21.9329)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C83 #7C832C
analogous
#2C5183 #332C83 #5F2C83
triadic
#332C83 #83332C #2C8333
tetradic
#332C83 #832C51 #7C832C #2C835F
square
#332C83 #832C51 #7C832C #2C835F
split-complementary
#332C83 #835F2C #51832C
monochromatic
#0F0D27 #211D55 #332C83 #453BB1 #6860CA

Accessibility & contrast

On white

11.48
#332C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C83
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C83#FFFFFF#000000##FFFFFF
##332C831.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332c83;
/* rgb */ color: rgb(51, 44, 131);
/* oklch */ color: oklch(35.9% 0.140 280.2);
Tailwind
colors: {
  custom: {
    50: '#7466a8',
    500: '#332c83',
    950: '#000000',
  },
}
SCSS
$custom: #332c83;
$custom-light: #7466a8;
$custom-dark: #000000;
JSON
{
  "hex": "#332c83",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 244.828,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.14045,
    "h": 280.2
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#332C83
secondary
#A9B05B
accent
#D94FCE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332C83

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

Preview Lab → · Contrast checker → · Palette generator →

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