#332FB3#332FB3

#332FB3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.199 H 274.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#332FB3
RGBrgb(51, 47, 179)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 74%, 70%)
CMYKcmyk(71.5%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.39, 44.39, -68.75)
CIE-LCHlch(29.39, 81.84, 302.85°)
OKLaboklab(41.02% 0.0155 -0.1988)
OKLCHoklch(41.02% 0.199 274.4)
XYZxyz(10.5157, 5.9905, 43.2412)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB3 #AFB32F
analogous
#2F6DB3 #332FB3 #752FB3
triadic
#332FB3 #B3332F #2FB333
tetradic
#332FB3 #B32F6D #AFB32F #2FB375
square
#332FB3 #B32F6D #AFB32F #2FB375
split-complementary
#332FB3 #B3752F #6DB32F
monochromatic
#171652 #252283 #332FB3 #524FD1 #827FDD

Accessibility & contrast

On white

9.55
#332FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#332FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB3
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB3#FFFFFF#000000##FFFFFF
##332FB31.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332fb3;
/* rgb */ color: rgb(51, 47, 179);
/* oklch */ color: oklch(41.0% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e69cb',
    500: '#332fb3',
    950: '#000000',
  },
}
SCSS
$custom: #332fb3;
$custom-light: #7e69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb3",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 241.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41023,
    "c": 0.19942,
    "h": 274.4
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#332FB3
secondary
#C4C678
accent
#E246DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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