#333598#333598

#333598 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.158 H 275.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#333598
RGBrgb(51, 53, 152)
HSLhsl(239, 50%, 40%)
HSVhsv(239, 66%, 60%)
CMYKcmyk(66.4%, 65.1%, 0%, 40.4%)
CIE-LABlab(28.16, 31.53, -54.48)
CIE-LCHlch(28.16, 62.94, 300.06°)
OKLaboklab(39.36% 0.0151 -0.1571)
OKLCHoklch(39.36% 0.158 275.5)
XYZxyz(8.3040, 5.5163, 30.3268)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333598 #989633
analogous
#336898 #333598 #643398
triadic
#333598 #983335 #359833
tetradic
#333598 #983368 #989633 #339864
square
#333598 #983368 #989633 #339864
split-complementary
#333598 #986433 #689833
monochromatic
#14153C #24256A #333598 #4749C1 #7577D1

Accessibility & contrast

On white

9.98
#333598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#333598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333598
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333598#FFFFFF#000000##FFFFFF
##3335981.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333598;
/* rgb */ color: rgb(51, 53, 152);
/* oklch */ color: oklch(39.4% 0.158 275.5);
Tailwind
colors: {
  custom: {
    50: '#786cb7',
    500: '#333598',
    950: '#000000',
  },
}
SCSS
$custom: #333598;
$custom-light: #786cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#333598",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 152
  },
  "hsl": {
    "h": 238.812,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.15782,
    "h": 275.5
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333598

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

Preview Lab → · Contrast checker → · Palette generator →

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