#3331B5#3331B5

#3331B5 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.200 H 274.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#3331B5
RGBrgb(51, 49, 181)
HSLhsl(241, 57%, 45%)
HSVhsv(241, 73%, 71%)
CMYKcmyk(71.8%, 72.9%, 0%, 29%)
CIE-LABlab(30.00, 43.91, -68.94)
CIE-LCHlch(30.00, 81.73, 302.50°)
OKLaboklab(41.52% 0.014 -0.1994)
OKLCHoklch(41.52% 0.2 274)
XYZxyz(10.8013, 6.2356, 44.3415)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B5 #B3B531
analogous
#3171B5 #3331B5 #7531B5
triadic
#3331B5 #B53331 #31B533
tetradic
#3331B5 #B53171 #B3B531 #31B575
square
#3331B5 #B53171 #B3B531 #31B575
split-complementary
#3331B5 #B57531 #71B531
monochromatic
#181755 #252485 #3331B5 #5553D0 #8483DD

Accessibility & contrast

On white

9.34
#3331B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3331B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B5
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B5#FFFFFF#000000##FFFFFF
##3331B51.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3331b5;
/* rgb */ color: rgb(51, 49, 181);
/* oklch */ color: oklch(41.5% 0.200 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e6bcc',
    500: '#3331b5',
    950: '#000000',
  },
}
SCSS
$custom: #3331b5;
$custom-light: #7e6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b5",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 240.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41519,
    "c": 0.19986,
    "h": 274
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#3331B5
secondary
#C6C77B
accent
#E147DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3331B5

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

Preview Lab → · Contrast checker → · Palette generator →

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