#3334B2#3334B2

#3334B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.193 H 273.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#3334B2
RGBrgb(51, 52, 178)
HSLhsl(240, 55%, 45%)
HSVhsv(240, 71%, 70%)
CMYKcmyk(71.3%, 70.8%, 0%, 30.2%)
CIE-LABlab(30.33, 41.15, -66.60)
CIE-LCHlch(30.33, 78.29, 301.71°)
OKLaboklab(41.67% 0.0128 -0.1926)
OKLCHoklch(41.67% 0.193 273.8)
XYZxyz(10.6264, 6.3731, 42.7810)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334B2 #B2B133
analogous
#3373B2 #3334B2 #7233B2
triadic
#3334B2 #B23334 #34B233
tetradic
#3334B2 #B23373 #B2B133 #33B272
square
#3334B2 #B23373 #B2B133 #33B272
split-complementary
#3334B2 #B27233 #73B233
monochromatic
#181853 #252682 #3334B2 #5455CE #8484DC

Accessibility & contrast

On white

9.23
#3334B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3334B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334B2
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334B2#FFFFFF#000000##FFFFFF
##3334B21.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3334b2;
/* rgb */ color: rgb(51, 52, 178);
/* oklch */ color: oklch(41.7% 0.193 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d6cca',
    500: '#3334b2',
    950: '#000000',
  },
}
SCSS
$custom: #3334b2;
$custom-light: #7d6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#3334b2",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 239.528,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41669,
    "c": 0.19299,
    "h": 273.8
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#3334B2
secondary
#C5C57C
accent
#DE49DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3334B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3334B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva