#332DA7#332DA7

#332DA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.187 H 275.8°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#332DA7
RGBrgb(51, 45, 167)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 73%, 65%)
CMYKcmyk(69.5%, 73.1%, 0%, 34.5%)
CIE-LABlab(27.76, 41.57, -64.24)
CIE-LCHlch(27.76, 76.52, 302.91°)
OKLaboklab(39.5% 0.0188 -0.1856)
OKLCHoklch(39.5% 0.187 275.8)
XYZxyz(9.2764, 5.3697, 37.0993)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DA7 #A1A72D
analogous
#2D64A7 #332DA7 #702DA7
triadic
#332DA7 #A7332D #2DA733
tetradic
#332DA7 #A72D64 #A1A72D #2DA770
square
#332DA7 #A72D64 #A1A72D #2DA770
split-complementary
#332DA7 #A7702D #64A72D
monochromatic
#161347 #242077 #332DA7 #4B44CD #7A75DA

Accessibility & contrast

On white

10.12
#332DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DA7
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DA7#FFFFFF#000000##FFFFFF
##332DA71.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332da7;
/* rgb */ color: rgb(51, 45, 167);
/* oklch */ color: oklch(39.5% 0.187 275.8);
Tailwind
colors: {
  custom: {
    50: '#7b67c2',
    500: '#332da7',
    950: '#000000',
  },
}
SCSS
$custom: #332da7;
$custom-light: #7b67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332da7",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 242.951,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39503,
    "c": 0.1866,
    "h": 275.8
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#332DA7
secondary
#BDC16E
accent
#E147D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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