#332F94#332F94

#332F94 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.160 H 277.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#332F94
RGBrgb(51, 47, 148)
HSLhsl(242, 52%, 38%)
HSVhsv(242, 68%, 58%)
CMYKcmyk(65.5%, 68.2%, 0%, 42%)
CIE-LABlab(26.37, 33.94, -54.95)
CIE-LCHlch(26.37, 64.58, 301.70°)
OKLaboklab(37.95% 0.0204 -0.1585)
OKLCHoklch(37.95% 0.16 277.3)
XYZxyz(7.7253, 4.8743, 28.5450)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F94 #90942F
analogous
#2F5D94 #332F94 #652F94
triadic
#332F94 #94332F #2F9433
tetradic
#332F94 #942F5D #90942F #2F9465
square
#332F94 #942F5D #90942F #2F9465
split-complementary
#332F94 #94652F #5D942F
monochromatic
#131137 #232066 #332F94 #443EC2 #716DD1

Accessibility & contrast

On white

10.63
#332F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#332F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F94
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F94#FFFFFF#000000##FFFFFF
##332F941.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332f94;
/* rgb */ color: rgb(51, 47, 148);
/* oklch */ color: oklch(38.0% 0.160 277.3);
Tailwind
colors: {
  custom: {
    50: '#7768b4',
    500: '#332f94',
    950: '#000000',
  },
}
SCSS
$custom: #332f94;
$custom-light: #7768b4;
$custom-dark: #000000;
JSON
{
  "hex": "#332f94",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 242.376,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3795,
    "c": 0.15979,
    "h": 277.3
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#332F94
secondary
#B5B867
accent
#DB4DD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332F94

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

Preview Lab → · Contrast checker → · Palette generator →

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