#3331B3#3331B3

#3331B3 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.197 H 274.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#3331B3
RGBrgb(51, 49, 179)
HSLhsl(241, 57%, 45%)
HSVhsv(241, 73%, 70%)
CMYKcmyk(71.5%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.80, 43.25, -68.08)
CIE-LCHlch(29.80, 80.65, 302.43°)
OKLaboklab(41.32% 0.0144 -0.1969)
OKLCHoklch(41.32% 0.197 274.2)
XYZxyz(10.5975, 6.1541, 43.2684)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B3 #B1B331
analogous
#3170B3 #3331B3 #7431B3
triadic
#3331B3 #B33331 #31B333
tetradic
#3331B3 #B33170 #B1B331 #31B374
square
#3331B3 #B33170 #B1B331 #31B374
split-complementary
#3331B3 #B37431 #70B331
monochromatic
#181753 #252483 #3331B3 #5452D0 #8382DD

Accessibility & contrast

On white

9.41
#3331B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3331B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B3
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B3#FFFFFF#000000##FFFFFF
##3331B31.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3331b3;
/* rgb */ color: rgb(51, 49, 179);
/* oklch */ color: oklch(41.3% 0.197 274.2);
Tailwind
colors: {
  custom: {
    50: '#7e6bcb',
    500: '#3331b3',
    950: '#000000',
  },
}
SCSS
$custom: #3331b3;
$custom-light: #7e6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b3",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 240.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.19739,
    "h": 274.2
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#3331B3
secondary
#C5C67A
accent
#E048DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3331B3

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

Preview Lab → · Contrast checker → · Palette generator →

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