#3331A2#3331A2

#3331A2 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.176 H 275.6°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#3331A2
RGBrgb(51, 49, 162)
HSLhsl(241, 54%, 41%)
HSVhsv(241, 70%, 64%)
CMYKcmyk(68.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(28.14, 37.51, -60.60)
CIE-LCHlch(28.14, 71.27, 301.76°)
OKLaboklab(39.62% 0.017 -0.175)
OKLCHoklch(39.62% 0.176 275.6)
XYZxyz(8.9830, 5.5083, 34.7652)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331A2 #A0A231
analogous
#3168A2 #3331A2 #6C31A2
triadic
#3331A2 #A23331 #31A233
tetradic
#3331A2 #A23168 #A0A231 #31A26C
square
#3331A2 #A23168 #A0A231 #31A26C
split-complementary
#3331A2 #A26C31 #68A231
monochromatic
#151544 #242373 #3331A2 #4B48C8 #7977D6

Accessibility & contrast

On white

9.99
#3331A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3331A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331A2
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331A2#FFFFFF#000000##FFFFFF
##3331A21.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3331a2;
/* rgb */ color: rgb(51, 49, 162);
/* oklch */ color: oklch(39.6% 0.176 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a6abf',
    500: '#3331a2',
    950: '#000000',
  },
}
SCSS
$custom: #3331a2;
$custom-light: #7a6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#3331a2",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 241.062,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39622,
    "c": 0.17586,
    "h": 275.6
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#3331A2
secondary
#BDBE71
accent
#DD4BDA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #3331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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