#332F83#332F83

#332F83 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.136 H 279.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#332F83
RGBrgb(51, 47, 131)
HSLhsl(243, 47%, 35%)
HSVhsv(243, 64%, 51%)
CMYKcmyk(61.1%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.87, 28.05, -46.84)
CIE-LCHlch(24.87, 54.59, 300.91°)
OKLaboklab(36.39% 0.022 -0.1347)
OKLCHoklch(36.39% 0.136 279.3)
XYZxyz(6.4772, 4.3751, 21.9715)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F83 #7F832F
analogous
#2F5583 #332F83 #5D2F83
triadic
#332F83 #83332F #2F8333
tetradic
#332F83 #832F55 #7F832F #2F835D
square
#332F83 #832F55 #7F832F #2F835D
split-complementary
#332F83 #835D2F #55832F
monochromatic
#100F29 #211F56 #332F83 #453FB0 #6965C8

Accessibility & contrast

On white

11.20
#332F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F83
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F83#FFFFFF#000000##FFFFFF
##332F831.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332f83;
/* rgb */ color: rgb(51, 47, 131);
/* oklch */ color: oklch(36.4% 0.136 279.3);
Tailwind
colors: {
  custom: {
    50: '#7468a8',
    500: '#332f83',
    950: '#000000',
  },
}
SCSS
$custom: #332f83;
$custom-light: #7468a8;
$custom-dark: #000000;
JSON
{
  "hex": "#332f83",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 242.857,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36394,
    "c": 0.13648,
    "h": 279.3
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#332F83
secondary
#ABAF5F
accent
#D751D0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332F83

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

Preview Lab → · Contrast checker → · Palette generator →

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