#332FB1#332FB1

#332FB1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.197 H 274.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#332FB1
RGBrgb(51, 47, 177)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(71.2%, 73.4%, 0%, 30.6%)
CIE-LABlab(29.18, 43.73, -67.90)
CIE-LCHlch(29.18, 80.76, 302.79°)
OKLaboklab(40.82% 0.0158 -0.1963)
OKLCHoklch(40.82% 0.197 274.6)
XYZxyz(10.3149, 5.9102, 42.1836)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB1 #ADB12F
analogous
#2F6CB1 #332FB1 #742FB1
triadic
#332FB1 #B1332F #2FB133
tetradic
#332FB1 #B12F6C #ADB12F #2FB174
square
#332FB1 #B12F6C #ADB12F #2FB174
split-complementary
#332FB1 #B1742F #6CB12F
monochromatic
#171550 #252281 #332FB1 #514DD0 #817EDD

Accessibility & contrast

On white

9.62
#332FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#332FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB1
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB1#FFFFFF#000000##FFFFFF
##332FB11.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332fb1;
/* rgb */ color: rgb(51, 47, 177);
/* oklch */ color: oklch(40.8% 0.197 274.6);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#332fb1',
    950: '#000000',
  },
}
SCSS
$custom: #332fb1;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb1",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 241.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40818,
    "c": 0.19697,
    "h": 274.6
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#332FB1
secondary
#C3C576
accent
#E147DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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