#3335A2#3335A2

#3335A2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.171 H 274.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#3335A2
RGBrgb(51, 53, 162)
HSLhsl(239, 52%, 42%)
HSVhsv(239, 69%, 64%)
CMYKcmyk(68.5%, 67.3%, 0%, 36.5%)
CIE-LABlab(29.05, 35.04, -59.10)
CIE-LCHlch(29.05, 68.70, 300.66°)
OKLaboklab(40.28% 0.0142 -0.1706)
OKLCHoklch(40.28% 0.171 274.8)
XYZxyz(9.1578, 5.8578, 34.8235)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3335A2 #A2A033
analogous
#336DA2 #3335A2 #6933A2
triadic
#3335A2 #A23335 #35A233
tetradic
#3335A2 #A2336D #A2A033 #33A269
square
#3335A2 #A2336D #A2A033 #33A269
split-complementary
#3335A2 #A26933 #6DA233
monochromatic
#161745 #242673 #3335A2 #4C4EC7 #7A7CD5

Accessibility & contrast

On white

9.67
#3335A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3335A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3335A2
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3335A2#FFFFFF#000000##FFFFFF
##3335A21.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3335a2;
/* rgb */ color: rgb(51, 53, 162);
/* oklch */ color: oklch(40.3% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a6dbf',
    500: '#3335a2',
    950: '#000000',
  },
}
SCSS
$custom: #3335a2;
$custom-light: #7a6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#3335a2",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 238.919,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.17123,
    "h": 274.8
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#3335A2
secondary
#BEBC73
accent
#D94CDC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3335A2

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

Preview Lab → · Contrast checker → · Palette generator →

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