#332B95#332B95

#332B95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.166 H 278.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#332B95
RGBrgb(51, 43, 149)
HSLhsl(245, 55%, 38%)
HSVhsv(245, 71%, 58%)
CMYKcmyk(65.8%, 71.1%, 0%, 41.6%)
CIE-LABlab(25.57, 36.74, -56.88)
CIE-LCHlch(25.57, 67.72, 302.85°)
OKLaboklab(37.4% 0.0233 -0.1642)
OKLCHoklch(37.4% 0.166 278.1)
XYZxyz(7.6522, 4.6009, 28.9127)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B95 #8D952B
analogous
#2B5895 #332B95 #682B95
triadic
#332B95 #95332B #2B9533
tetradic
#332B95 #952B58 #8D952B #2B9568
square
#332B95 #952B58 #8D952B #2B9568
split-complementary
#332B95 #95682B #58952B
monochromatic
#121036 #231D66 #332B95 #4339C4 #6F67D3

Accessibility & contrast

On white

10.94
#332B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#332B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B95
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B95#FFFFFF#000000##FFFFFF
##332B951.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #332b95;
/* rgb */ color: rgb(51, 43, 149);
/* oklch */ color: oklch(37.4% 0.166 278.1);
Tailwind
colors: {
  custom: {
    50: '#7865b5',
    500: '#332b95',
    950: '#000000',
  },
}
SCSS
$custom: #332b95;
$custom-light: #7865b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332b95",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 244.528,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.16581,
    "h": 278.1
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#332B95
secondary
#B3BA62
accent
#DF49D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332B95

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

Preview Lab → · Contrast checker → · Palette generator →

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