#332297#332297

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

Color values

HEX#332297
RGBrgb(51, 34, 151)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 59%)
CMYKcmyk(66.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.94, 42.51, -60.79)
CIE-LCHlch(23.94, 74.18, 304.96°)
OKLaboklab(36.3% 0.029 -0.1755)
OKLCHoklch(36.3% 0.178 279.4)
XYZxyz(7.5214, 4.0816, 29.6636)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332297 #869722
analogous
#224C97 #332297 #6E2297
triadic
#332297 #973322 #229733
tetradic
#332297 #97224C #869722 #22976E
square
#332297 #97224C #869722 #22976E
split-complementary
#332297 #976E22 #4C9722
monochromatic
#110C33 #221765 #332297 #442DC9 #6C5ADA

Accessibility & contrast

On white

11.56
#332297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332297
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332297#FFFFFF#000000##FFFFFF
##3322971.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332297;
/* rgb */ color: rgb(51, 34, 151);
/* oklch */ color: oklch(36.3% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#7960b7',
    500: '#332297',
    950: '#000000',
  },
}
SCSS
$custom: #332297;
$custom-light: #7960b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332297",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 248.718,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.17789,
    "h": 279.4
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332297

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

Preview Lab → · Contrast checker → · Palette generator →

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