#3336A4#3336A4

#3336A4 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.173 H 274.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#3336A4
RGBrgb(51, 54, 164)
HSLhsl(238, 53%, 42%)
HSVhsv(238, 69%, 64%)
CMYKcmyk(68.9%, 67.1%, 0%, 35.7%)
CIE-LABlab(29.47, 35.11, -59.63)
CIE-LCHlch(29.47, 69.19, 300.49°)
OKLaboklab(40.64% 0.0133 -0.1722)
OKLCHoklch(40.64% 0.173 274.4)
XYZxyz(9.3830, 6.0216, 35.7826)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3336A4 #A4A133
analogous
#336FA4 #3336A4 #6933A4
triadic
#3336A4 #A43336 #36A433
tetradic
#3336A4 #A4336F #A4A133 #33A469
square
#3336A4 #A4336F #A4A133 #33A469
split-complementary
#3336A4 #A46933 #6FA433
monochromatic
#161747 #242775 #3336A4 #4D50C8 #7B7ED6

Accessibility & contrast

On white

9.53
#3336A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3336A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3336A4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3336A4#FFFFFF#000000##FFFFFF
##3336A41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3336a4;
/* rgb */ color: rgb(51, 54, 164);
/* oklch */ color: oklch(40.6% 0.173 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a6dc0',
    500: '#3336a4',
    950: '#000000',
  },
}
SCSS
$custom: #3336a4;
$custom-light: #7a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3336a4",
  "rgb": {
    "r": 51,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 238.407,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40641,
    "c": 0.17269,
    "h": 274.4
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#3336A4
secondary
#BFBD74
accent
#D84CDC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3336A4

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

Preview Lab → · Contrast checker → · Palette generator →

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