#333498#333498

#333498 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.159 H 275.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#333498
RGBrgb(51, 52, 152)
HSLhsl(239, 50%, 40%)
HSVhsv(239, 66%, 60%)
CMYKcmyk(66.4%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.92, 32.17, -54.87)
CIE-LCHlch(27.92, 63.61, 300.38°)
OKLaboklab(39.18% 0.0159 -0.1583)
OKLCHoklch(39.18% 0.159 275.8)
XYZxyz(8.2589, 5.4261, 30.3118)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333498 #989733
analogous
#336798 #333498 #653398
triadic
#333498 #983334 #349833
tetradic
#333498 #983367 #989733 #339865
square
#333498 #983367 #989733 #339865
split-complementary
#333498 #986533 #679833
monochromatic
#14153C #24246A #333498 #4748C1 #7576D1

Accessibility & contrast

On white

10.07
#333498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#333498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333498
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333498#FFFFFF#000000##FFFFFF
##3334981.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #333498;
/* rgb */ color: rgb(51, 52, 152);
/* oklch */ color: oklch(39.2% 0.159 275.8);
Tailwind
colors: {
  custom: {
    50: '#786cb7',
    500: '#333498',
    950: '#000000',
  },
}
SCSS
$custom: #333498;
$custom-light: #786cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#333498",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 239.406,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39181,
    "c": 0.15906,
    "h": 275.8
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#333498
secondary
#B9B86E
accent
#D84FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333498

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

Preview Lab → · Contrast checker → · Palette generator →

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