#3337A2#3337A2

#3337A2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.169 H 274.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#3337A2
RGBrgb(51, 55, 162)
HSLhsl(238, 52%, 42%)
HSVhsv(238, 69%, 64%)
CMYKcmyk(68.5%, 66%, 0%, 36.5%)
CIE-LABlab(29.52, 33.77, -58.33)
CIE-LCHlch(29.52, 67.40, 300.07°)
OKLaboklab(40.63% 0.0127 -0.1684)
OKLCHoklch(40.63% 0.169 274.3)
XYZxyz(9.2509, 6.0440, 34.8545)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3337A2 #A29E33
analogous
#336FA2 #3337A2 #6733A2
triadic
#3337A2 #A23337 #37A233
tetradic
#3337A2 #A2336F #A29E33 #33A267
square
#3337A2 #A2336F #A29E33 #33A267
split-complementary
#3337A2 #A26733 #6FA233
monochromatic
#161745 #242773 #3337A2 #4C50C7 #7A7DD5

Accessibility & contrast

On white

9.51
#3337A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3337A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3337A2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3337A2#FFFFFF#000000##FFFFFF
##3337A21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3337a2;
/* rgb */ color: rgb(51, 55, 162);
/* oklch */ color: oklch(40.6% 0.169 274.3);
Tailwind
colors: {
  custom: {
    50: '#796ebe',
    500: '#3337a2',
    950: '#000000',
  },
}
SCSS
$custom: #3337a2;
$custom-light: #796ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#3337a2",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 237.838,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40627,
    "c": 0.16884,
    "h": 274.3
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#3337A2
secondary
#BEBB73
accent
#D64CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3337A2

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

Preview Lab → · Contrast checker → · Palette generator →

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