#332995#332995

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

Color values

HEX#332995
RGBrgb(51, 41, 149)
HSLhsl(246, 57%, 37%)
HSVhsv(246, 72%, 58%)
CMYKcmyk(65.8%, 72.5%, 0%, 41.6%)
CIE-LABlab(25.13, 37.93, -57.59)
CIE-LCHlch(25.13, 68.96, 303.37°)
OKLaboklab(37.09% 0.0248 -0.1662)
OKLCHoklch(37.09% 0.168 278.5)
XYZxyz(7.5812, 4.4590, 28.8891)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332995 #8B9529
analogous
#295595 #332995 #692995
triadic
#332995 #953329 #299533
tetradic
#332995 #952955 #8B9529 #299569
square
#332995 #952955 #8B9529 #299569
split-complementary
#332995 #956929 #559529
monochromatic
#120F35 #231C65 #332995 #4336C5 #6E64D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332995#FFFFFF#000000##FFFFFF
##3329951.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)
#004098
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332995;
/* rgb */ color: rgb(51, 41, 149);
/* oklch */ color: oklch(37.1% 0.168 278.5);
Tailwind
colors: {
  custom: {
    50: '#7864b5',
    500: '#332995',
    950: '#000000',
  },
}
SCSS
$custom: #332995;
$custom-light: #7864b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332995",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 245.556,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37088,
    "c": 0.16807,
    "h": 278.5
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#332995
secondary
#B2BA60
accent
#E048D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332995

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

Preview Lab → · Contrast checker → · Palette generator →

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