#332F95#332F95

#332F95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.161 H 277.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#332F95
RGBrgb(51, 47, 149)
HSLhsl(242, 52%, 38%)
HSVhsv(242, 68%, 58%)
CMYKcmyk(65.8%, 68.5%, 0%, 41.6%)
CIE-LABlab(26.47, 34.28, -55.41)
CIE-LCHlch(26.47, 65.16, 301.75°)
OKLaboklab(38.04% 0.0203 -0.1598)
OKLCHoklch(38.04% 0.161 277.2)
XYZxyz(7.8048, 4.9061, 28.9636)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F95 #91952F
analogous
#2F5E95 #332F95 #662F95
triadic
#332F95 #95332F #2F9533
tetradic
#332F95 #952F5E #91952F #2F9566
square
#332F95 #952F5E #91952F #2F9566
split-complementary
#332F95 #95662F #5E952F
monochromatic
#131238 #232066 #332F95 #443FC2 #716DD1

Accessibility & contrast

On white

10.60
#332F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#332F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F95
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F95#FFFFFF#000000##FFFFFF
##332F951.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332f95;
/* rgb */ color: rgb(51, 47, 149);
/* oklch */ color: oklch(38.0% 0.161 277.2);
Tailwind
colors: {
  custom: {
    50: '#7768b5',
    500: '#332f95',
    950: '#000000',
  },
}
SCSS
$custom: #332f95;
$custom-light: #7768b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332f95",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 242.353,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.16112,
    "h": 277.2
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#332F95
secondary
#B5B867
accent
#DB4CD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332F95

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

Preview Lab → · Contrast checker → · Palette generator →

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