#333990#333990

#333990 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.142 H 274.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#333990
RGBrgb(51, 57, 144)
HSLhsl(236, 48%, 38%)
HSVhsv(236, 65%, 56%)
CMYKcmyk(64.6%, 60.4%, 0%, 43.5%)
CIE-LABlab(28.49, 26.06, -49.02)
CIE-LCHlch(28.49, 55.52, 298.00°)
OKLaboklab(39.4% 0.012 -0.141)
OKLCHoklch(39.4% 0.142 274.8)
XYZxyz(7.8608, 5.6430, 27.0551)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333990 #908A33
analogous
#336790 #333990 #5B3390
triadic
#333990 #903339 #399033
tetradic
#333990 #903367 #908A33 #33905B
square
#333990 #903367 #908A33 #33905B
split-complementary
#333990 #905B33 #679033
monochromatic
#131536 #232763 #333990 #444BBD #7177CD

Accessibility & contrast

On white

9.86
#333990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333990
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333990#FFFFFF#000000##FFFFFF
##3339901.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333990;
/* rgb */ color: rgb(51, 57, 144);
/* oklch */ color: oklch(39.4% 0.142 274.8);
Tailwind
colors: {
  custom: {
    50: '#766fb1',
    500: '#333990',
    950: '#000000',
  },
}
SCSS
$custom: #333990;
$custom-light: #766fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#333990",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 144
  },
  "hsl": {
    "h": 236.129,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39395,
    "c": 0.14155,
    "h": 274.8
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#333990
secondary
#B5B06A
accent
#CF51D7
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333990

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

Preview Lab → · Contrast checker → · Palette generator →

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