#332FB0#332FB0

#332FB0 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.196 H 274.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#332FB0
RGBrgb(51, 47, 176)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(71%, 73.3%, 0%, 31%)
CIE-LABlab(29.08, 43.40, -67.47)
CIE-LCHlch(29.08, 80.22, 302.75°)
OKLaboklab(40.72% 0.016 -0.1951)
OKLCHoklch(40.72% 0.196 274.7)
XYZxyz(10.2156, 5.8704, 41.6606)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB0 #ACB02F
analogous
#2F6BB0 #332FB0 #732FB0
triadic
#332FB0 #B0332F #2FB033
tetradic
#332FB0 #B02F6B #ACB02F #2FB073
square
#332FB0 #B02F6B #ACB02F #2FB073
split-complementary
#332FB0 #B0732F #6BB02F
monochromatic
#17154F #252280 #332FB0 #514DCF #807DDC

Accessibility & contrast

On white

9.66
#332FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#332FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB0
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB0#FFFFFF#000000##FFFFFF
##332FB01.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332fb0;
/* rgb */ color: rgb(51, 47, 176);
/* oklch */ color: oklch(40.7% 0.196 274.7);
Tailwind
colors: {
  custom: {
    50: '#7d69c9',
    500: '#332fb0',
    950: '#000000',
  },
}
SCSS
$custom: #332fb0;
$custom-light: #7d69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb0",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 241.86,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40715,
    "c": 0.19573,
    "h": 274.7
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#332FB0
secondary
#C2C576
accent
#E147DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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