#333391#333391

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

Color values

HEX#333391
RGBrgb(51, 51, 145)
HSLhsl(240, 48%, 38%)
HSVhsv(240, 65%, 57%)
CMYKcmyk(64.8%, 64.8%, 0%, 43.1%)
CIE-LABlab(27.06, 30.35, -51.97)
CIE-LCHlch(27.06, 60.19, 300.28°)
OKLaboklab(38.37% 0.0174 -0.1498)
OKLCHoklch(38.37% 0.151 276.6)
XYZxyz(7.6582, 5.1152, 27.3663)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333391 #919133
analogous
#336291 #333391 #623391
triadic
#333391 #913333 #339133
tetradic
#333391 #913362 #919133 #339162
square
#333391 #913362 #919133 #339162
split-complementary
#333391 #916233 #629133
monochromatic
#131336 #232364 #333391 #4444BD #7171CD

Accessibility & contrast

On white

10.38
#333391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#333391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333391
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333391#FFFFFF#000000##FFFFFF
##3333911.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #333391;
/* rgb */ color: rgb(51, 51, 145);
/* oklch */ color: oklch(38.4% 0.151 276.6);
Tailwind
colors: {
  custom: {
    50: '#766bb2',
    500: '#333391',
    950: '#000000',
  },
}
SCSS
$custom: #333391;
$custom-light: #766bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#333391",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38367,
    "c": 0.15076,
    "h": 276.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#333391
secondary
#B5B56B
accent
#D850D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #333391

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

Preview Lab → · Contrast checker → · Palette generator →

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