#333397#333397

#333397 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.159 H 276.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#333397
RGBrgb(51, 51, 151)
HSLhsl(240, 50%, 40%)
HSVhsv(240, 66%, 59%)
CMYKcmyk(66.2%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.59, 32.46, -54.80)
CIE-LCHlch(27.59, 63.69, 300.64°)
OKLaboklab(38.91% 0.0168 -0.158)
OKLCHoklch(38.91% 0.159 276.1)
XYZxyz(8.1332, 5.3051, 29.8675)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333397 #979733
analogous
#336597 #333397 #653397
triadic
#333397 #973333 #339733
tetradic
#333397 #973365 #979733 #339765
square
#333397 #973365 #979733 #339765
split-complementary
#333397 #976533 #659733
monochromatic
#14143C #242469 #333397 #4747C1 #7474D0

Accessibility & contrast

On white

10.19
#333397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#333397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333397
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333397#FFFFFF#000000##FFFFFF
##3333971.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333397;
/* rgb */ color: rgb(51, 51, 151);
/* oklch */ color: oklch(38.9% 0.159 276.1);
Tailwind
colors: {
  custom: {
    50: '#776bb6',
    500: '#333397',
    950: '#000000',
  },
}
SCSS
$custom: #333397;
$custom-light: #776bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#333397",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.15894,
    "h": 276.1
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333397

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

Preview Lab → · Contrast checker → · Palette generator →

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