#333398#333398

#333398 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.160 H 276.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#333398
RGBrgb(51, 51, 152)
HSLhsl(240, 50%, 40%)
HSVhsv(240, 66%, 60%)
CMYKcmyk(66.4%, 66.4%, 0%, 40.4%)
CIE-LABlab(27.68, 32.81, -55.27)
CIE-LCHlch(27.68, 64.27, 300.69°)
OKLaboklab(39.01% 0.0167 -0.1594)
OKLCHoklch(39.01% 0.16 276)
XYZxyz(8.2147, 5.3378, 30.2971)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333398 #989833
analogous
#336698 #333398 #663398
triadic
#333398 #983333 #339833
tetradic
#333398 #983366 #989833 #339866
square
#333398 #983366 #989833 #339866
split-complementary
#333398 #986633 #669833
monochromatic
#14143C #24246A #333398 #4747C1 #7575D1

Accessibility & contrast

On white

10.16
#333398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#333398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333398
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333398#FFFFFF#000000##FFFFFF
##3333981.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333398;
/* rgb */ color: rgb(51, 51, 152);
/* oklch */ color: oklch(39.0% 0.160 276.0);
Tailwind
colors: {
  custom: {
    50: '#786bb7',
    500: '#333398',
    950: '#000000',
  },
}
SCSS
$custom: #333398;
$custom-light: #786bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#333398",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39006,
    "c": 0.16029,
    "h": 276
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#333398
secondary
#B9B96E
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333398

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

Preview Lab → · Contrast checker → · Palette generator →

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