#3331B2#3331B2

#3331B2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.196 H 274.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#3331B2
RGBrgb(51, 49, 178)
HSLhsl(241, 57%, 45%)
HSVhsv(241, 72%, 70%)
CMYKcmyk(71.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.70, 42.92, -67.65)
CIE-LCHlch(29.70, 80.11, 302.39°)
OKLaboklab(41.21% 0.0145 -0.1956)
OKLCHoklch(41.21% 0.196 274.3)
XYZxyz(10.4968, 6.1138, 42.7377)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B2 #B0B231
analogous
#3170B2 #3331B2 #7431B2
triadic
#3331B2 #B23331 #31B233
tetradic
#3331B2 #B23170 #B0B231 #31B274
square
#3331B2 #B23170 #B0B231 #31B274
split-complementary
#3331B2 #B27431 #70B231
monochromatic
#181752 #252482 #3331B2 #5351CF #8281DC

Accessibility & contrast

On white

9.45
#3331B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3331B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B2#FFFFFF#000000##FFFFFF
##3331B21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3331b2;
/* rgb */ color: rgb(51, 49, 178);
/* oklch */ color: oklch(41.2% 0.196 274.3);
Tailwind
colors: {
  custom: {
    50: '#7e6aca',
    500: '#3331b2',
    950: '#000000',
  },
}
SCSS
$custom: #3331b2;
$custom-light: #7e6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b2",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 240.93,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41213,
    "c": 0.19615,
    "h": 274.3
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#3331B2
secondary
#C4C579
accent
#E048DE
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3331B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3331B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva