#332B83#332B83

#332B83 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.142 H 280.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#332B83
RGBrgb(51, 43, 131)
HSLhsl(245, 51%, 34%)
HSVhsv(245, 67%, 51%)
CMYKcmyk(61.1%, 67.2%, 0%, 48.6%)
CIE-LABlab(23.90, 30.63, -48.42)
CIE-LCHlch(23.90, 57.30, 302.31°)
OKLaboklab(35.68% 0.0259 -0.1394)
OKLCHoklch(35.68% 0.142 280.5)
XYZxyz(6.3246, 4.0698, 21.9206)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B83 #7B832B
analogous
#2B4F83 #332B83 #5F2B83
triadic
#332B83 #83332B #2B8333
tetradic
#332B83 #832B4F #7B832B #2B835F
square
#332B83 #832B4F #7B832B #2B835F
split-complementary
#332B83 #835F2B #4F832B
monochromatic
#0F0D27 #211C55 #332B83 #453AB1 #685ECA

Accessibility & contrast

On white

11.58
#332B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B83
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B83#FFFFFF#000000##FFFFFF
##332B831.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332b83;
/* rgb */ color: rgb(51, 43, 131);
/* oklch */ color: oklch(35.7% 0.142 280.5);
Tailwind
colors: {
  custom: {
    50: '#7465a8',
    500: '#332b83',
    950: '#000000',
  },
}
SCSS
$custom: #332b83;
$custom-light: #7465a8;
$custom-dark: #000000;
JSON
{
  "hex": "#332b83",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 245.455,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.14175,
    "h": 280.5
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#332B83
secondary
#A8B05A
accent
#DA4ECD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332B83

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

Preview Lab → · Contrast checker → · Palette generator →

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