#3336A5#3336A5

#3336A5 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.174 H 274.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#3336A5
RGBrgb(51, 54, 165)
HSLhsl(238, 53%, 42%)
HSVhsv(238, 69%, 65%)
CMYKcmyk(69.1%, 67.3%, 0%, 35.3%)
CIE-LABlab(29.56, 35.46, -60.08)
CIE-LCHlch(29.56, 69.76, 300.55°)
OKLaboklab(40.74% 0.0132 -0.1735)
OKLCHoklch(40.74% 0.174 274.3)
XYZxyz(9.4737, 6.0579, 36.2600)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3336A5 #A5A233
analogous
#336FA5 #3336A5 #6933A5
triadic
#3336A5 #A53336 #36A533
tetradic
#3336A5 #A5336F #A5A233 #33A569
square
#3336A5 #A5336F #A5A233 #33A569
split-complementary
#3336A5 #A56933 #6FA533
monochromatic
#161748 #252776 #3336A5 #4D50C8 #7C7ED6

Accessibility & contrast

On white

9.49
#3336A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3336A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3336A5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3336A5#FFFFFF#000000##FFFFFF
##3336A51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3336a5;
/* rgb */ color: rgb(51, 54, 165);
/* oklch */ color: oklch(40.7% 0.174 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a6dc1',
    500: '#3336a5',
    950: '#000000',
  },
}
SCSS
$custom: #3336a5;
$custom-light: #7a6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#3336a5",
  "rgb": {
    "r": 51,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 238.421,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.17401,
    "h": 274.3
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#3336A5
secondary
#BFBD75
accent
#D84CDC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3336A5

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

Preview Lab → · Contrast checker → · Palette generator →

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