#333197#333197

#333197 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.161 H 276.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#333197
RGBrgb(51, 49, 151)
HSLhsl(241, 51%, 39%)
HSVhsv(241, 68%, 59%)
CMYKcmyk(66.2%, 67.5%, 0%, 40.8%)
CIE-LABlab(27.11, 33.72, -55.58)
CIE-LCHlch(27.11, 65.01, 301.25°)
OKLaboklab(38.57% 0.0184 -0.1603)
OKLCHoklch(38.57% 0.161 276.6)
XYZxyz(8.0476, 5.1341, 29.8390)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333197 #959731
analogous
#316297 #333197 #663197
triadic
#333197 #973331 #319733
tetradic
#333197 #973162 #959731 #319766
square
#333197 #973162 #959731 #319766
split-complementary
#333197 #976631 #629731
monochromatic
#14133B #232269 #333197 #4643C2 #7371D1

Accessibility & contrast

On white

10.36
#333197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#333197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333197
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333197#FFFFFF#000000##FFFFFF
##3331971.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #333197;
/* rgb */ color: rgb(51, 49, 151);
/* oklch */ color: oklch(38.6% 0.161 276.6);
Tailwind
colors: {
  custom: {
    50: '#786ab7',
    500: '#333197',
    950: '#000000',
  },
}
SCSS
$custom: #333197;
$custom-light: #786ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#333197",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 241.176,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.16138,
    "h": 276.6
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#333197
secondary
#B7B96B
accent
#DA4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333197

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

Preview Lab → · Contrast checker → · Palette generator →

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