#333A98#333A98

#333A98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.151 H 274.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#333A98
RGBrgb(51, 58, 152)
HSLhsl(236, 50%, 40%)
HSVhsv(236, 66%, 60%)
CMYKcmyk(66.4%, 61.8%, 0%, 40.4%)
CIE-LABlab(29.40, 28.28, -52.45)
CIE-LCHlch(29.40, 59.58, 298.33°)
OKLaboklab(40.27% 0.0109 -0.1511)
OKLCHoklch(40.27% 0.151 274.1)
XYZxyz(8.5439, 5.9962, 30.4068)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A98 #989133
analogous
#336C98 #333A98 #5F3398
triadic
#333A98 #98333A #3A9833
tetradic
#333A98 #98336C #989133 #33985F
square
#333A98 #98336C #989133 #33985F
split-complementary
#333A98 #985F33 #6C9833
monochromatic
#14173C #24296A #333A98 #474FC1 #757BD1

Accessibility & contrast

On white

9.55
#333A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#333A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A98
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A98#FFFFFF#000000##FFFFFF
##333A981.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333a98;
/* rgb */ color: rgb(51, 58, 152);
/* oklch */ color: oklch(40.3% 0.151 274.1);
Tailwind
colors: {
  custom: {
    50: '#7770b7',
    500: '#333a98',
    950: '#000000',
  },
}
SCSS
$custom: #333a98;
$custom-light: #7770b7;
$custom-dark: #000000;
JSON
{
  "hex": "#333a98",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 235.842,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40272,
    "c": 0.15148,
    "h": 274.1
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#333A98
secondary
#B9B46E
accent
#D04FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333A98

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

Preview Lab → · Contrast checker → · Palette generator →

#333A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva