#3337A5#3337A5

#3337A5 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.173 H 274.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#3337A5
RGBrgb(51, 55, 165)
HSLhsl(238, 53%, 42%)
HSVhsv(238, 69%, 65%)
CMYKcmyk(69.1%, 66.7%, 0%, 35.3%)
CIE-LABlab(29.79, 34.83, -59.70)
CIE-LCHlch(29.79, 69.11, 300.26°)
OKLaboklab(40.91% 0.0124 -0.1724)
OKLCHoklch(40.91% 0.173 274.1)
XYZxyz(9.5207, 6.1519, 36.2757)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3337A5 #A5A133
analogous
#3370A5 #3337A5 #6833A5
triadic
#3337A5 #A53337 #37A533
tetradic
#3337A5 #A53370 #A5A133 #33A568
square
#3337A5 #A53370 #A5A133 #33A568
split-complementary
#3337A5 #A56833 #70A533
monochromatic
#161848 #252776 #3337A5 #4D51C8 #7C7FD6

Accessibility & contrast

On white

9.41
#3337A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3337A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3337A5
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3337A5#FFFFFF#000000##FFFFFF
##3337A51.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3337a5;
/* rgb */ color: rgb(51, 55, 165);
/* oklch */ color: oklch(40.9% 0.173 274.1);
Tailwind
colors: {
  custom: {
    50: '#7a6ec1',
    500: '#3337a5',
    950: '#000000',
  },
}
SCSS
$custom: #3337a5;
$custom-light: #7a6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#3337a5",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 237.895,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40906,
    "c": 0.17283,
    "h": 274.1
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#3337A5
secondary
#BFBD75
accent
#D74CDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3337A5

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

Preview Lab → · Contrast checker → · Palette generator →

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