#332A9F#332A9F

#332A9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.180 H 277.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#332A9F
RGBrgb(51, 42, 159)
HSLhsl(245, 58%, 39%)
HSVhsv(245, 74%, 62%)
CMYKcmyk(67.9%, 73.6%, 0%, 37.6%)
CIE-LABlab(26.34, 40.66, -61.73)
CIE-LCHlch(26.34, 73.92, 303.37°)
OKLaboklab(38.25% 0.0222 -0.1783)
OKLCHoklch(38.25% 0.18 277.1)
XYZxyz(8.4492, 4.8622, 33.2874)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A9F #969F2A
analogous
#2A5C9F #332A9F #6D2A9F
triadic
#332A9F #9F332A #2A9F33
tetradic
#332A9F #9F2A5C #969F2A #2A9F6D
square
#332A9F #9F2A5C #969F2A #2A9F6D
split-complementary
#332A9F #9F6D2A #5C9F2A
monochromatic
#14103E #231D6F #332A9F #463BCB #746BD8

Accessibility & contrast

On white

10.65
#332A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#332A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A9F
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A9F#FFFFFF#000000##FFFFFF
##332A9F1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332a9f;
/* rgb */ color: rgb(51, 42, 159);
/* oklch */ color: oklch(38.2% 0.180 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a65bd',
    500: '#332a9f',
    950: '#000000',
  },
}
SCSS
$custom: #332a9f;
$custom-light: #7a65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#332a9f",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 244.615,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38246,
    "c": 0.1797,
    "h": 277.1
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#332A9F
secondary
#B8BF66
accent
#E146D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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