#332FB2#332FB2

#332FB2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.198 H 274.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#332FB2
RGBrgb(51, 47, 178)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 74%, 70%)
CMYKcmyk(71.3%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.29, 44.06, -68.32)
CIE-LCHlch(29.29, 81.30, 302.82°)
OKLaboklab(40.92% 0.0156 -0.1976)
OKLCHoklch(40.92% 0.198 274.5)
XYZxyz(10.4150, 5.9502, 42.7105)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB2 #AEB22F
analogous
#2F6DB2 #332FB2 #752FB2
triadic
#332FB2 #B2332F #2FB233
tetradic
#332FB2 #B22F6D #AEB22F #2FB275
square
#332FB2 #B22F6D #AEB22F #2FB275
split-complementary
#332FB2 #B2752F #6DB22F
monochromatic
#171551 #252282 #332FB2 #524ED0 #817EDD

Accessibility & contrast

On white

9.59
#332FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#332FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB2
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB2#FFFFFF#000000##FFFFFF
##332FB21.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332fb2;
/* rgb */ color: rgb(51, 47, 178);
/* oklch */ color: oklch(40.9% 0.198 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#332fb2',
    950: '#000000',
  },
}
SCSS
$custom: #332fb2;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb2",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 241.832,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4092,
    "c": 0.1982,
    "h": 274.5
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#332FB2
secondary
#C3C677
accent
#E146DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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