#332DBA#332DBA

#332DBA is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.5% C 0.210 H 274.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#332DBA
RGBrgb(51, 45, 186)
HSLhsl(243, 61%, 45%)
HSVhsv(243, 76%, 73%)
CMYKcmyk(72.6%, 75.8%, 0%, 27.1%)
CIE-LABlab(29.72, 47.78, -72.36)
CIE-LCHlch(29.72, 86.71, 303.44°)
OKLaboklab(41.48% 0.0151 -0.2093)
OKLCHoklch(41.48% 0.21 274.1)
XYZxyz(11.1636, 6.1246, 47.0387)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DBA #B4BA2D
analogous
#2D6EBA #332DBA #792DBA
triadic
#332DBA #BA332D #2DBA33
tetradic
#332DBA #BA2D6E #B4BA2D #2DBA79
square
#332DBA #BA2D6E #B4BA2D #2DBA79
split-complementary
#332DBA #BA792D #6EBA2D
monochromatic
#181557 #252189 #332DBA #5550D5 #8581E0

Accessibility & contrast

On white

9.44
#332DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#332DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DBA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DBA#FFFFFF#000000##FFFFFF
##332DBA1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003FB8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332dba;
/* rgb */ color: rgb(51, 45, 186);
/* oklch */ color: oklch(41.5% 0.210 274.1);
Tailwind
colors: {
  custom: {
    50: '#8068d0',
    500: '#332dba',
    950: '#000000',
  },
}
SCSS
$custom: #332dba;
$custom-light: #8068d0;
$custom-dark: #000000;
JSON
{
  "hex": "#332dba",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 242.553,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41478,
    "c": 0.20984,
    "h": 274.1
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#332DBA
secondary
#C6C979
accent
#E444DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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