#332495#332495

#332495 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.173 H 279.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#332495
RGBrgb(51, 36, 149)
HSLhsl(248, 61%, 36%)
HSVhsv(248, 76%, 58%)
CMYKcmyk(65.8%, 75.8%, 0%, 41.6%)
CIE-LABlab(24.11, 40.79, -59.28)
CIE-LCHlch(24.11, 71.95, 304.53°)
OKLaboklab(36.36% 0.0282 -0.1711)
OKLCHoklch(36.36% 0.173 279.4)
XYZxyz(7.4192, 4.1349, 28.8351)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332495 #869524
analogous
#244E95 #332495 #6C2495
triadic
#332495 #953324 #249533
tetradic
#332495 #95244E #869524 #24956C
square
#332495 #95244E #869524 #24956C
split-complementary
#332495 #956C24 #4E9524
monochromatic
#110C32 #221864 #332495 #4430C6 #6C5CD8

Accessibility & contrast

On white

11.49
#332495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332495
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332495#FFFFFF#000000##FFFFFF
##3324951.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332495;
/* rgb */ color: rgb(51, 36, 149);
/* oklch */ color: oklch(36.4% 0.173 279.4);
Tailwind
colors: {
  custom: {
    50: '#7861b5',
    500: '#332495',
    950: '#000000',
  },
}
SCSS
$custom: #332495;
$custom-light: #7861b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332495",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 247.965,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.17342,
    "h": 279.4
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#332495
secondary
#AFBC59
accent
#E444CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332495

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

Preview Lab → · Contrast checker → · Palette generator →

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