#333291#333291

#333291 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.152 H 276.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#333291
RGBrgb(51, 50, 145)
HSLhsl(241, 49%, 38%)
HSVhsv(241, 66%, 57%)
CMYKcmyk(64.8%, 65.5%, 0%, 43.1%)
CIE-LABlab(26.82, 31.00, -52.37)
CIE-LCHlch(26.82, 60.86, 300.62°)
OKLaboklab(38.19% 0.0182 -0.1509)
OKLCHoklch(38.19% 0.152 276.9)
XYZxyz(7.6150, 5.0287, 27.3519)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333291 #909132
analogous
#326091 #333291 #623291
triadic
#333291 #913332 #329133
tetradic
#333291 #913260 #909132 #329162
square
#333291 #913260 #909132 #329162
split-complementary
#333291 #916232 #609132
monochromatic
#131336 #232263 #333291 #4442BE #7170CE

Accessibility & contrast

On white

10.47
#333291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#333291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333291
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333291#FFFFFF#000000##FFFFFF
##3332911.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #333291;
/* rgb */ color: rgb(51, 50, 145);
/* oklch */ color: oklch(38.2% 0.152 276.9);
Tailwind
colors: {
  custom: {
    50: '#766ab2',
    500: '#333291',
    950: '#000000',
  },
}
SCSS
$custom: #333291;
$custom-light: #766ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#333291",
  "rgb": {
    "r": 51,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 240.632,
    "s": 48.718,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38188,
    "c": 0.15202,
    "h": 276.9
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#333291
secondary
#B5B569
accent
#D850D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #333291

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

Preview Lab → · Contrast checker → · Palette generator →

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