#332DA0#332DA0

#332DA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.178 H 276.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#332DA0
RGBrgb(51, 45, 160)
HSLhsl(243, 56%, 40%)
HSVhsv(243, 72%, 63%)
CMYKcmyk(68.1%, 71.9%, 0%, 37.3%)
CIE-LABlab(27.07, 39.24, -61.14)
CIE-LCHlch(27.07, 72.65, 302.69°)
OKLaboklab(38.8% 0.02 -0.1766)
OKLCHoklch(38.8% 0.178 276.5)
XYZxyz(8.6467, 5.1179, 33.7831)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DA0 #9AA02D
analogous
#2D61A0 #332DA0 #6C2DA0
triadic
#332DA0 #A0332D #2DA033
tetradic
#332DA0 #A02D61 #9AA02D #2DA06C
square
#332DA0 #A02D61 #9AA02D #2DA06C
split-complementary
#332DA0 #A06C2D #61A02D
monochromatic
#151240 #242070 #332DA0 #4841C9 #7670D7

Accessibility & contrast

On white

10.38
#332DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#332DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DA0
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DA0#FFFFFF#000000##FFFFFF
##332DA01.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332da0;
/* rgb */ color: rgb(51, 45, 160);
/* oklch */ color: oklch(38.8% 0.178 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a67bd',
    500: '#332da0',
    950: '#000000',
  },
}
SCSS
$custom: #332da0;
$custom-light: #7a67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#332da0",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 243.13,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.17774,
    "h": 276.5
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#332DA0
secondary
#BABE6B
accent
#DF48D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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