#332395#332395

#332395 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.174 H 279.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#332395
RGBrgb(51, 35, 149)
HSLhsl(248, 62%, 36%)
HSVhsv(248, 77%, 58%)
CMYKcmyk(65.8%, 76.5%, 0%, 41.6%)
CIE-LABlab(23.92, 41.34, -59.60)
CIE-LCHlch(23.92, 72.53, 304.75°)
OKLaboklab(36.23% 0.0288 -0.172)
OKLCHoklch(36.23% 0.174 279.5)
XYZxyz(7.3894, 4.0752, 28.8251)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332395 #859523
analogous
#234C95 #332395 #6C2395
triadic
#332395 #953323 #239533
tetradic
#332395 #95234C #859523 #23956C
square
#332395 #95234C #859523 #23956C
split-complementary
#332395 #956C23 #4C9523
monochromatic
#110C32 #221763 #332395 #442FC7 #6C5AD8

Accessibility & contrast

On white

11.57
#332395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332395
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332395#FFFFFF#000000##FFFFFF
##3323951.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332395;
/* rgb */ color: rgb(51, 35, 149);
/* oklch */ color: oklch(36.2% 0.174 279.5);
Tailwind
colors: {
  custom: {
    50: '#7860b5',
    500: '#332395',
    950: '#000000',
  },
}
SCSS
$custom: #332395;
$custom-light: #7860b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332395",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 248.421,
    "s": 61.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36225,
    "c": 0.17444,
    "h": 279.5
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#332395
secondary
#AEBD57
accent
#E543CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332395

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

Preview Lab → · Contrast checker → · Palette generator →

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