#332897#332897

#332897 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.172 H 278.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#332897
RGBrgb(51, 40, 151)
HSLhsl(246, 58%, 37%)
HSVhsv(246, 74%, 59%)
CMYKcmyk(66.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(25.12, 39.17, -58.84)
CIE-LCHlch(25.12, 70.69, 303.65°)
OKLaboklab(37.14% 0.0251 -0.1699)
OKLCHoklch(37.14% 0.172 278.4)
XYZxyz(7.7081, 4.4551, 29.7259)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332897 #8C9728
analogous
#285497 #332897 #6B2897
triadic
#332897 #973328 #289733
tetradic
#332897 #972854 #8C9728 #28976B
square
#332897 #972854 #8C9728 #28976B
split-complementary
#332897 #976B28 #549728
monochromatic
#120E36 #231B67 #332897 #4335C7 #6F64D6

Accessibility & contrast

On white

11.10
#332897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#332897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332897
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332897#FFFFFF#000000##FFFFFF
##3328971.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332897;
/* rgb */ color: rgb(51, 40, 151);
/* oklch */ color: oklch(37.1% 0.172 278.4);
Tailwind
colors: {
  custom: {
    50: '#7864b7',
    500: '#332897',
    950: '#000000',
  },
}
SCSS
$custom: #332897;
$custom-light: #7864b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332897",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 245.946,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37139,
    "c": 0.17172,
    "h": 278.4
  },
  "luminance": 0.04456
}

Semantic roles & 50–950 ramp

primary
#332897
secondary
#B2BC5F
accent
#E146D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332897

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

Preview Lab → · Contrast checker → · Palette generator →

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