#3331B8#3331B8

#3331B8 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.8% C 0.204 H 273.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#3331B8
RGBrgb(51, 49, 184)
HSLhsl(241, 58%, 46%)
HSVhsv(241, 73%, 72%)
CMYKcmyk(72.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.30, 44.91, -70.22)
CIE-LCHlch(30.30, 83.35, 302.60°)
OKLaboklab(41.83% 0.0135 -0.2031)
OKLCHoklch(41.83% 0.204 273.8)
XYZxyz(11.1124, 6.3600, 45.9801)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B8 #B6B831
analogous
#3172B8 #3331B8 #7631B8
triadic
#3331B8 #B83331 #31B833
tetradic
#3331B8 #B83172 #B6B831 #31B876
square
#3331B8 #B83172 #B6B831 #31B876
split-complementary
#3331B8 #B87631 #72B831
monochromatic
#181757 #262488 #3331B8 #5655D2 #8685DE

Accessibility & contrast

On white

9.24
#3331B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3331B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B8
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B8#FFFFFF#000000##FFFFFF
##3331B81.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3331b8;
/* rgb */ color: rgb(51, 49, 184);
/* oklch */ color: oklch(41.8% 0.204 273.8);
Tailwind
colors: {
  custom: {
    50: '#7f6bcf',
    500: '#3331b8',
    950: '#000000',
  },
}
SCSS
$custom: #3331b8;
$custom-light: #7f6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b8",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 240.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.20355,
    "h": 273.8
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#3331B8
secondary
#C7C87D
accent
#E147DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3331B8

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

Preview Lab → · Contrast checker → · Palette generator →

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