#3337A4#3337A4

#3337A4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.172 H 274.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#3337A4
RGBrgb(51, 55, 164)
HSLhsl(238, 53%, 42%)
HSVhsv(238, 69%, 64%)
CMYKcmyk(68.9%, 66.5%, 0%, 35.7%)
CIE-LABlab(29.70, 34.48, -59.24)
CIE-LCHlch(29.70, 68.54, 300.20°)
OKLaboklab(40.81% 0.0125 -0.171)
OKLCHoklch(40.81% 0.172 274.2)
XYZxyz(9.4300, 6.1157, 35.7982)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3337A4 #A4A033
analogous
#3370A4 #3337A4 #6833A4
triadic
#3337A4 #A43337 #37A433
tetradic
#3337A4 #A43370 #A4A033 #33A468
square
#3337A4 #A43370 #A4A033 #33A468
split-complementary
#3337A4 #A46833 #70A433
monochromatic
#161847 #242775 #3337A4 #4D51C8 #7B7FD6

Accessibility & contrast

On white

9.44
#3337A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3337A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3337A4
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3337A4#FFFFFF#000000##FFFFFF
##3337A41.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3337a4;
/* rgb */ color: rgb(51, 55, 164);
/* oklch */ color: oklch(40.8% 0.172 274.2);
Tailwind
colors: {
  custom: {
    50: '#7a6ec0',
    500: '#3337a4',
    950: '#000000',
  },
}
SCSS
$custom: #3337a4;
$custom-light: #7a6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#3337a4",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 237.876,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40813,
    "c": 0.1715,
    "h": 274.2
  },
  "luminance": 0.06117
}

Semantic roles & 50–950 ramp

primary
#3337A4
secondary
#BFBC74
accent
#D74CDC
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3337A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3337A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva