#332F93#332F93

#332F93 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.158 H 277.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#332F93
RGBrgb(51, 47, 147)
HSLhsl(242, 52%, 38%)
HSVhsv(242, 68%, 58%)
CMYKcmyk(65.3%, 68%, 0%, 42.4%)
CIE-LABlab(26.28, 33.60, -54.48)
CIE-LCHlch(26.28, 64.01, 301.66°)
OKLaboklab(37.85% 0.0205 -0.1571)
OKLCHoklch(37.85% 0.158 277.4)
XYZxyz(7.6465, 4.8428, 28.1299)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F93 #8F932F
analogous
#2F5D93 #332F93 #652F93
triadic
#332F93 #93332F #2F9333
tetradic
#332F93 #932F5D #8F932F #2F9365
square
#332F93 #932F5D #8F932F #2F9365
split-complementary
#332F93 #93652F #5D932F
monochromatic
#131136 #232065 #332F93 #433EC1 #706CD0

Accessibility & contrast

On white

10.67
#332F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#332F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F93
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F93#FFFFFF#000000##FFFFFF
##332F931.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332f93;
/* rgb */ color: rgb(51, 47, 147);
/* oklch */ color: oklch(37.9% 0.158 277.4);
Tailwind
colors: {
  custom: {
    50: '#7768b4',
    500: '#332f93',
    950: '#000000',
  },
}
SCSS
$custom: #332f93;
$custom-light: #7768b4;
$custom-dark: #000000;
JSON
{
  "hex": "#332f93",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 242.4,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37855,
    "c": 0.15845,
    "h": 277.4
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#332F93
secondary
#B4B766
accent
#DB4DD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332F93

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

Preview Lab → · Contrast checker → · Palette generator →

#332F93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva