#333698#333698

#333698 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.157 H 275.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#333698
RGBrgb(51, 54, 152)
HSLhsl(238, 50%, 40%)
HSVhsv(238, 66%, 60%)
CMYKcmyk(66.4%, 64.5%, 0%, 40.4%)
CIE-LABlab(28.40, 30.88, -54.08)
CIE-LCHlch(28.40, 62.28, 299.73°)
OKLaboklab(39.54% 0.0143 -0.1559)
OKLCHoklch(39.54% 0.157 275.2)
XYZxyz(8.3500, 5.6084, 30.3422)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333698 #989533
analogous
#336898 #333698 #633398
triadic
#333698 #983336 #369833
tetradic
#333698 #983368 #989533 #339863
square
#333698 #983368 #989533 #339863
split-complementary
#333698 #986333 #689833
monochromatic
#14153C #24266A #333698 #474BC1 #7578D1

Accessibility & contrast

On white

9.90
#333698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#333698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333698
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333698#FFFFFF#000000##FFFFFF
##3336981.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333698;
/* rgb */ color: rgb(51, 54, 152);
/* oklch */ color: oklch(39.5% 0.157 275.2);
Tailwind
colors: {
  custom: {
    50: '#776db7',
    500: '#333698',
    950: '#000000',
  },
}
SCSS
$custom: #333698;
$custom-light: #776db7;
$custom-dark: #000000;
JSON
{
  "hex": "#333698",
  "rgb": {
    "r": 51,
    "g": 54,
    "b": 152
  },
  "hsl": {
    "h": 238.218,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39536,
    "c": 0.15657,
    "h": 275.2
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#333698
secondary
#B9B76E
accent
#D54FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333698

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

Preview Lab → · Contrast checker → · Palette generator →

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