#332FAC#332FAC

#332FAC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.191 H 275.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#332FAC
RGBrgb(51, 47, 172)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 73%, 67%)
CMYKcmyk(70.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(28.68, 42.08, -65.73)
CIE-LCHlch(28.68, 78.05, 302.62°)
OKLaboklab(40.31% 0.0167 -0.19)
OKLCHoklch(40.31% 0.191 275)
XYZxyz(9.8257, 5.7145, 39.6069)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FAC #A8AC2F
analogous
#2F69AC #332FAC #712FAC
triadic
#332FAC #AC332F #2FAC33
tetradic
#332FAC #AC2F69 #A8AC2F #2FAC71
square
#332FAC #AC2F69 #A8AC2F #2FAC71
split-complementary
#332FAC #AC712F #69AC2F
monochromatic
#16154C #25227C #332FAC #4F4BCE #7E7BDB

Accessibility & contrast

On white

9.80
#332FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#332FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FAC
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FAC#FFFFFF#000000##FFFFFF
##332FAC1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332fac;
/* rgb */ color: rgb(51, 47, 172);
/* oklch */ color: oklch(40.3% 0.191 275.0);
Tailwind
colors: {
  custom: {
    50: '#7c69c6',
    500: '#332fac',
    950: '#000000',
  },
}
SCSS
$custom: #332fac;
$custom-light: #7c69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#332fac",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 241.92,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40307,
    "c": 0.19075,
    "h": 275
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#332FAC
secondary
#C1C374
accent
#E047DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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