#332795#332795

#332795 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.170 H 278.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#332795
RGBrgb(51, 39, 149)
HSLhsl(247, 59%, 37%)
HSVhsv(247, 74%, 58%)
CMYKcmyk(65.8%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.72, 39.09, -58.28)
CIE-LCHlch(24.72, 70.18, 303.85°)
OKLaboklab(36.79% 0.0262 -0.1682)
OKLCHoklch(36.79% 0.17 278.8)
XYZxyz(7.5138, 4.3242, 28.8666)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332795 #899527
analogous
#275295 #332795 #6A2795
triadic
#332795 #953327 #279533
tetradic
#332795 #952752 #899527 #27956A
square
#332795 #952752 #899527 #27956A
split-complementary
#332795 #956A27 #529527
monochromatic
#120E34 #221A64 #332795 #4434C6 #6E61D6

Accessibility & contrast

On white

11.26
#332795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#332795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332795
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332795#FFFFFF#000000##FFFFFF
##3327951.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332795;
/* rgb */ color: rgb(51, 39, 149);
/* oklch */ color: oklch(36.8% 0.170 278.8);
Tailwind
colors: {
  custom: {
    50: '#7863b5',
    500: '#332795',
    950: '#000000',
  },
}
SCSS
$custom: #332795;
$custom-light: #7863b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332795",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 246.545,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36789,
    "c": 0.17027,
    "h": 278.8
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#332795
secondary
#B1BB5D
accent
#E246D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332795

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

Preview Lab → · Contrast checker → · Palette generator →

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