#3337B8#3337B8

#3337B8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.197 H 273.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#3337B8
RGBrgb(51, 55, 184)
HSLhsl(238, 57%, 46%)
HSVhsv(238, 72%, 72%)
CMYKcmyk(72.3%, 70.1%, 0%, 27.8%)
CIE-LABlab(31.57, 41.40, -68.13)
CIE-LCHlch(31.57, 79.73, 301.29°)
OKLaboklab(42.73% 0.0102 -0.197)
OKLCHoklch(42.73% 0.197 273)
XYZxyz(11.3803, 6.8957, 46.0694)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3337B8 #B8B433
analogous
#3379B8 #3337B8 #7133B8
triadic
#3337B8 #B83337 #37B833
tetradic
#3337B8 #B83379 #B8B433 #33B871
square
#3337B8 #B83379 #B8B433 #33B871
split-complementary
#3337B8 #B87133 #79B833
monochromatic
#181A58 #262988 #3337B8 #585BD1 #888ADE

Accessibility & contrast

On white

8.83
#3337B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3337B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3337B8
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3337B8#FFFFFF#000000##FFFFFF
##3337B81.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3337b8;
/* rgb */ color: rgb(51, 55, 184);
/* oklch */ color: oklch(42.7% 0.197 273.0);
Tailwind
colors: {
  custom: {
    50: '#7e6fce',
    500: '#3337b8',
    950: '#000000',
  },
}
SCSS
$custom: #3337b8;
$custom-light: #7e6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3337b8",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 238.195,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.19731,
    "h": 273
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#3337B8
secondary
#C8C67F
accent
#DB48E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3337B8

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

Preview Lab → · Contrast checker → · Palette generator →

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