#333797#333797

#333797 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.154 H 275.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#333797
RGBrgb(51, 55, 151)
HSLhsl(238, 50%, 40%)
HSVhsv(238, 66%, 59%)
CMYKcmyk(66.2%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.56, 29.88, -53.20)
CIE-LCHlch(28.56, 61.02, 299.32°)
OKLaboklab(39.63% 0.0135 -0.1533)
OKLCHoklch(39.63% 0.154 275)
XYZxyz(8.3155, 5.6698, 29.9283)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333797 #979333
analogous
#336997 #333797 #613397
triadic
#333797 #973337 #379733
tetradic
#333797 #973369 #979333 #339761
square
#333797 #973369 #979333 #339761
split-complementary
#333797 #976133 #699733
monochromatic
#14163C #242669 #333797 #474BC1 #7478D0

Accessibility & contrast

On white

9.84
#333797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#333797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333797
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333797#FFFFFF#000000##FFFFFF
##3337971.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333797;
/* rgb */ color: rgb(51, 55, 151);
/* oklch */ color: oklch(39.6% 0.154 275.0);
Tailwind
colors: {
  custom: {
    50: '#776eb6',
    500: '#333797',
    950: '#000000',
  },
}
SCSS
$custom: #333797;
$custom-light: #776eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#333797",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 237.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39628,
    "c": 0.15393,
    "h": 275
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#333797
secondary
#B8B56D
accent
#D44FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333797

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

Preview Lab → · Contrast checker → · Palette generator →

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