#3339B2#3339B2

#3339B2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.187 H 273.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3339B2
RGBrgb(51, 57, 178)
HSLhsl(237, 55%, 45%)
HSVhsv(237, 71%, 70%)
CMYKcmyk(71.3%, 68%, 0%, 30.2%)
CIE-LABlab(31.45, 38.12, -64.77)
CIE-LCHlch(31.45, 75.15, 300.48°)
OKLaboklab(42.47% 0.0098 -0.1872)
OKLCHoklch(42.47% 0.187 273)
XYZxyz(10.8616, 6.8433, 42.8593)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3339B2 #B2AC33
analogous
#3379B2 #3339B2 #6C33B2
triadic
#3339B2 #B23339 #39B233
tetradic
#3339B2 #B23379 #B2AC33 #33B26C
square
#3339B2 #B23379 #B2AC33 #33B26C
split-complementary
#3339B2 #B26C33 #79B233
monochromatic
#181B53 #252A82 #3339B2 #545ACE #8488DC

Accessibility & contrast

On white

8.87
#3339B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3339B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3339B2
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3339B2#FFFFFF#000000##FFFFFF
##3339B21.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3339b2;
/* rgb */ color: rgb(51, 57, 178);
/* oklch */ color: oklch(42.5% 0.187 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d70ca',
    500: '#3339b2',
    950: '#000000',
  },
}
SCSS
$custom: #3339b2;
$custom-light: #7d70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3339b2",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 237.165,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.18746,
    "h": 273
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#3339B2
secondary
#C5C27C
accent
#D849DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3339B2

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

Preview Lab → · Contrast checker → · Palette generator →

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