#3331B7#3331B7

#3331B7 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.202 H 273.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#3331B7
RGBrgb(51, 49, 183)
HSLhsl(241, 58%, 45%)
HSVhsv(241, 73%, 72%)
CMYKcmyk(72.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.20, 44.58, -69.79)
CIE-LCHlch(30.20, 82.81, 302.57°)
OKLaboklab(41.72% 0.0137 -0.2019)
OKLCHoklch(41.72% 0.202 273.9)
XYZxyz(11.0080, 6.3182, 45.4300)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B7 #B5B731
analogous
#3172B7 #3331B7 #7631B7
triadic
#3331B7 #B73331 #31B733
tetradic
#3331B7 #B73172 #B5B731 #31B776
square
#3331B7 #B73172 #B5B731 #31B776
split-complementary
#3331B7 #B77631 #72B731
monochromatic
#181756 #262487 #3331B7 #5654D1 #8684DE

Accessibility & contrast

On white

9.28
#3331B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3331B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331B7
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331B7#FFFFFF#000000##FFFFFF
##3331B71.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3331b7;
/* rgb */ color: rgb(51, 49, 183);
/* oklch */ color: oklch(41.7% 0.202 273.9);
Tailwind
colors: {
  custom: {
    50: '#7f6bce',
    500: '#3331b7',
    950: '#000000',
  },
}
SCSS
$custom: #3331b7;
$custom-light: #7f6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b7",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 240.896,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41724,
    "c": 0.20232,
    "h": 273.9
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3331B7

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

Preview Lab → · Contrast checker → · Palette generator →

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