#3339A2#3339A2

#3339A2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.166 H 273.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#3339A2
RGBrgb(51, 57, 162)
HSLhsl(237, 52%, 42%)
HSVhsv(237, 69%, 64%)
CMYKcmyk(68.5%, 64.8%, 0%, 36.5%)
CIE-LABlab(30.00, 32.50, -57.54)
CIE-LCHlch(30.00, 66.08, 299.46°)
OKLaboklab(40.98% 0.0112 -0.166)
OKLCHoklch(40.98% 0.166 273.9)
XYZxyz(9.3478, 6.2378, 34.8868)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3339A2 #A29C33
analogous
#3371A2 #3339A2 #6533A2
triadic
#3339A2 #A23339 #39A233
tetradic
#3339A2 #A23371 #A29C33 #33A265
square
#3339A2 #A23371 #A29C33 #33A265
split-complementary
#3339A2 #A26533 #71A233
monochromatic
#161845 #242973 #3339A2 #4C52C7 #7A7FD5

Accessibility & contrast

On white

9.34
#3339A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3339A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3339A2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3339A2#FFFFFF#000000##FFFFFF
##3339A21.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)
#004CA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3339a2;
/* rgb */ color: rgb(51, 57, 162);
/* oklch */ color: oklch(41.0% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#796fbe',
    500: '#3339a2',
    950: '#000000',
  },
}
SCSS
$custom: #3339a2;
$custom-light: #796fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3339a2",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 236.757,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.16642,
    "h": 273.9
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#3339A2
secondary
#BEBA73
accent
#D44CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3339A2

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

Preview Lab → · Contrast checker → · Palette generator →

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