#333998#333998

#333998 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.153 H 274.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#333998
RGBrgb(51, 57, 152)
HSLhsl(236, 50%, 40%)
HSVhsv(236, 66%, 60%)
CMYKcmyk(66.4%, 62.5%, 0%, 40.4%)
CIE-LABlab(29.15, 28.93, -52.86)
CIE-LCHlch(29.15, 60.26, 298.69°)
OKLaboklab(40.09% 0.0118 -0.1523)
OKLCHoklch(40.09% 0.153 274.4)
XYZxyz(8.4940, 5.8963, 30.3902)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333998 #989233
analogous
#336B98 #333998 #603398
triadic
#333998 #983339 #399833
tetradic
#333998 #98336B #989233 #339860
square
#333998 #98336B #989233 #339860
split-complementary
#333998 #986033 #6B9833
monochromatic
#14173C #24286A #333998 #474EC1 #757AD1

Accessibility & contrast

On white

9.64
#333998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#333998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333998
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333998#FFFFFF#000000##FFFFFF
##3339981.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333998;
/* rgb */ color: rgb(51, 57, 152);
/* oklch */ color: oklch(40.1% 0.153 274.4);
Tailwind
colors: {
  custom: {
    50: '#776fb7',
    500: '#333998',
    950: '#000000',
  },
}
SCSS
$custom: #333998;
$custom-light: #776fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#333998",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 236.436,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40085,
    "c": 0.15277,
    "h": 274.4
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#333998
secondary
#B9B46E
accent
#D14FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333998

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

Preview Lab → · Contrast checker → · Palette generator →

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