#333898#333898

#333898 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.154 H 274.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#333898
RGBrgb(51, 56, 152)
HSLhsl(237, 50%, 40%)
HSVhsv(237, 66%, 60%)
CMYKcmyk(66.4%, 63.2%, 0%, 40.4%)
CIE-LABlab(28.90, 29.59, -53.27)
CIE-LCHlch(28.90, 60.93, 299.05°)
OKLaboklab(39.9% 0.0126 -0.1535)
OKLCHoklch(39.9% 0.154 274.7)
XYZxyz(8.4450, 5.7984, 30.3738)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333898 #989333
analogous
#336A98 #333898 #613398
triadic
#333898 #983338 #389833
tetradic
#333898 #98336A #989333 #339861
square
#333898 #98336A #989333 #339861
split-complementary
#333898 #986133 #6A9833
monochromatic
#14163C #24276A #333898 #474DC1 #7579D1

Accessibility & contrast

On white

9.72
#333898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#333898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333898
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333898#FFFFFF#000000##FFFFFF
##3338981.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333898;
/* rgb */ color: rgb(51, 56, 152);
/* oklch */ color: oklch(39.9% 0.154 274.7);
Tailwind
colors: {
  custom: {
    50: '#776eb7',
    500: '#333898',
    950: '#000000',
  },
}
SCSS
$custom: #333898;
$custom-light: #776eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#333898",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 237.03,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.399,
    "c": 0.15405,
    "h": 274.7
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#333898
secondary
#B9B56E
accent
#D24FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333898

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

Preview Lab → · Contrast checker → · Palette generator →

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