#3331B4#3331B4

#3331B4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.199 H 274.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#3331B4
RGBrgb(51, 49, 180)
HSLhsl(241, 57%, 45%)
HSVhsv(241, 73%, 71%)
CMYKcmyk(71.7%, 72.8%, 0%, 29.4%)
CIE-LABlab(29.90, 43.58, -68.51)
CIE-LCHlch(29.90, 81.19, 302.46°)
OKLaboklab(41.42% 0.0142 -0.1981)
OKLCHoklch(41.42% 0.199 274.1)
XYZxyz(10.6990, 6.1947, 43.8030)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B4 #B2B431
analogous
#3171B4 #3331B4 #7531B4
triadic
#3331B4 #B43331 #31B433
tetradic
#3331B4 #B43171 #B2B431 #31B475
square
#3331B4 #B43171 #B2B431 #31B475
split-complementary
#3331B4 #B47531 #71B431
monochromatic
#181754 #252484 #3331B4 #5452D0 #8482DD

Accessibility & contrast

On white

9.38
#3331B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3331B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B4
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B4#FFFFFF#000000##FFFFFF
##3331B41.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3331b4;
/* rgb */ color: rgb(51, 49, 180);
/* oklch */ color: oklch(41.4% 0.199 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e6bcc',
    500: '#3331b4',
    950: '#000000',
  },
}
SCSS
$custom: #3331b4;
$custom-light: #7e6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b4",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 240.916,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.19863,
    "h": 274.1
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#3331B4
secondary
#C5C67B
accent
#E047DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3331B4

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

Preview Lab → · Contrast checker → · Palette generator →

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