#332FBA#332FBA

#332FBA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.208 H 273.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#332FBA
RGBrgb(51, 47, 186)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(72.6%, 74.7%, 0%, 27.1%)
CIE-LABlab(30.11, 46.68, -71.72)
CIE-LCHlch(30.11, 85.57, 303.06°)
OKLaboklab(41.75% 0.0141 -0.2075)
OKLCHoklch(41.75% 0.208 273.9)
XYZxyz(11.2417, 6.2809, 47.0647)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FBA #B6BA2F
analogous
#2F70BA #332FBA #792FBA
triadic
#332FBA #BA332F #2FBA33
tetradic
#332FBA #BA2F70 #B6BA2F #2FBA79
square
#332FBA #BA2F70 #B6BA2F #2FBA79
split-complementary
#332FBA #BA792F #70BA2F
monochromatic
#181658 #262389 #332FBA #5653D3 #8684E0

Accessibility & contrast

On white

9.31
#332FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#332FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FBA
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FBA#FFFFFF#000000##FFFFFF
##332FBA1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #332fba;
/* rgb */ color: rgb(51, 47, 186);
/* oklch */ color: oklch(41.8% 0.208 273.9);
Tailwind
colors: {
  custom: {
    50: '#806ad0',
    500: '#332fba',
    950: '#000000',
  },
}
SCSS
$custom: #332fba;
$custom-light: #806ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#332fba",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 241.727,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41751,
    "c": 0.20794,
    "h": 273.9
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#332FBA
secondary
#C7C97C
accent
#E345DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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