#332295#332295

#332295 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.175 H 279.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#332295
RGBrgb(51, 34, 149)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 58%)
CMYKcmyk(65.8%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.73, 41.88, -59.91)
CIE-LCHlch(23.73, 73.09, 304.95°)
OKLaboklab(36.09% 0.0295 -0.1729)
OKLCHoklch(36.09% 0.175 279.7)
XYZxyz(7.3604, 4.0172, 28.8155)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332295 #849522
analogous
#224A95 #332295 #6C2295
triadic
#332295 #953322 #229533
tetradic
#332295 #95224A #849522 #22956C
square
#332295 #95224A #849522 #22956C
split-complementary
#332295 #956C22 #4A9522
monochromatic
#110B31 #221763 #332295 #442DC7 #6B58D9

Accessibility & contrast

On white

11.64
#332295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#332295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332295
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332295#FFFFFF#000000##FFFFFF
##3322951.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332295;
/* rgb */ color: rgb(51, 34, 149);
/* oklch */ color: oklch(36.1% 0.175 279.7);
Tailwind
colors: {
  custom: {
    50: '#7960b5',
    500: '#332295',
    950: '#000000',
  },
}
SCSS
$custom: #332295;
$custom-light: #7960b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332295",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 248.87,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.17544,
    "h": 279.7
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#332295
secondary
#AEBD56
accent
#E642CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332295

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

Preview Lab → · Contrast checker → · Palette generator →

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