#332EBA#332EBA

#332EBA is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.209 H 274.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#332EBA
RGBrgb(51, 46, 186)
HSLhsl(242, 60%, 45%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(72.6%, 75.3%, 0%, 27.1%)
CIE-LABlab(29.92, 47.23, -72.04)
CIE-LCHlch(29.92, 86.14, 303.25°)
OKLaboklab(41.61% 0.0146 -0.2084)
OKLCHoklch(41.61% 0.209 274)
XYZxyz(11.2022, 6.2019, 47.0516)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EBA #B5BA2E
analogous
#2E6FBA #332EBA #792EBA
triadic
#332EBA #BA332E #2EBA33
tetradic
#332EBA #BA2E6F #B5BA2E #2EBA79
square
#332EBA #BA2E6F #B5BA2E #2EBA79
split-complementary
#332EBA #BA792E #6FBA2E
monochromatic
#181658 #262289 #332EBA #5651D4 #8682E0

Accessibility & contrast

On white

9.37
#332EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#332EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EBA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EBA#FFFFFF#000000##FFFFFF
##332EBA1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332eba;
/* rgb */ color: rgb(51, 46, 186);
/* oklch */ color: oklch(41.6% 0.209 274.0);
Tailwind
colors: {
  custom: {
    50: '#8069d0',
    500: '#332eba',
    950: '#000000',
  },
}
SCSS
$custom: #332eba;
$custom-light: #8069d0;
$custom-dark: #000000;
JSON
{
  "hex": "#332eba",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 242.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41613,
    "c": 0.2089,
    "h": 274
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#332EBA
secondary
#C6C97B
accent
#E344DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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