#333C98#333C98

#333C98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.149 H 273.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#333C98
RGBrgb(51, 60, 152)
HSLhsl(235, 50%, 40%)
HSVhsv(235, 66%, 60%)
CMYKcmyk(66.4%, 60.5%, 0%, 40.4%)
CIE-LABlab(29.92, 26.96, -51.61)
CIE-LCHlch(29.92, 58.23, 297.58°)
OKLaboklab(40.65% 0.0091 -0.1486)
OKLCHoklch(40.65% 0.149 273.5)
XYZxyz(8.6467, 6.2018, 30.4411)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C98 #988F33
analogous
#336F98 #333C98 #5C3398
triadic
#333C98 #98333C #3C9833
tetradic
#333C98 #98336F #988F33 #33985C
square
#333C98 #98336F #988F33 #33985C
split-complementary
#333C98 #985C33 #6F9833
monochromatic
#14183C #242A6A #333C98 #4752C1 #757DD1

Accessibility & contrast

On white

9.37
#333C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#333C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C98
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C98#FFFFFF#000000##FFFFFF
##333C981.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333c98;
/* rgb */ color: rgb(51, 60, 152);
/* oklch */ color: oklch(40.7% 0.149 273.5);
Tailwind
colors: {
  custom: {
    50: '#7771b7',
    500: '#333c98',
    950: '#000000',
  },
}
SCSS
$custom: #333c98;
$custom-light: #7771b7;
$custom-dark: #000000;
JSON
{
  "hex": "#333c98",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 234.653,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.1489,
    "h": 273.5
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#333C98
secondary
#B9B26E
accent
#CD4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333C98

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

Preview Lab → · Contrast checker → · Palette generator →

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