#333495#333495

#333495 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.155 H 276.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#333495
RGBrgb(51, 52, 149)
HSLhsl(239, 49%, 39%)
HSVhsv(239, 66%, 58%)
CMYKcmyk(65.8%, 65.1%, 0%, 41.6%)
CIE-LABlab(27.65, 31.12, -53.47)
CIE-LCHlch(27.65, 61.86, 300.20°)
OKLaboklab(38.91% 0.0162 -0.1541)
OKLCHoklch(38.91% 0.155 276)
XYZxyz(8.0163, 5.3290, 29.0341)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333495 #959433
analogous
#336595 #333495 #633395
triadic
#333495 #953334 #349533
tetradic
#333495 #953365 #959433 #339563
square
#333495 #953365 #959433 #339563
split-complementary
#333495 #956333 #659533
monochromatic
#14143A #232467 #333495 #4647C0 #7374CF

Accessibility & contrast

On white

10.16
#333495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#333495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333495
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333495#FFFFFF#000000##FFFFFF
##3334951.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333495;
/* rgb */ color: rgb(51, 52, 149);
/* oklch */ color: oklch(38.9% 0.155 276.0);
Tailwind
colors: {
  custom: {
    50: '#776cb5',
    500: '#333495',
    950: '#000000',
  },
}
SCSS
$custom: #333495;
$custom-light: #776cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#333495",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 239.388,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38907,
    "c": 0.15498,
    "h": 276
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#333495
secondary
#B7B76C
accent
#D74FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333495

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

Preview Lab → · Contrast checker → · Palette generator →

#333495 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva