#333994#333994

#333994 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.147 H 274.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#333994
RGBrgb(51, 57, 148)
HSLhsl(236, 49%, 39%)
HSVhsv(236, 66%, 58%)
CMYKcmyk(65.5%, 61.5%, 0%, 42%)
CIE-LABlab(28.82, 27.50, -50.95)
CIE-LCHlch(28.82, 57.90, 298.36°)
OKLaboklab(39.74% 0.0119 -0.1467)
OKLCHoklch(39.74% 0.147 274.6)
XYZxyz(8.1719, 5.7675, 28.6938)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333994 #948E33
analogous
#336A94 #333994 #5E3394
triadic
#333994 #943339 #399433
tetradic
#333994 #94336A #948E33 #33945E
square
#333994 #94336A #948E33 #33945E
split-complementary
#333994 #945E33 #6A9433
monochromatic
#141639 #232766 #333994 #454DBF #7378CF

Accessibility & contrast

On white

9.75
#333994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333994
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333994#FFFFFF#000000##FFFFFF
##3339941.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333994;
/* rgb */ color: rgb(51, 57, 148);
/* oklch */ color: oklch(39.7% 0.147 274.6);
Tailwind
colors: {
  custom: {
    50: '#766fb4',
    500: '#333994',
    950: '#000000',
  },
}
SCSS
$custom: #333994;
$custom-light: #766fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#333994",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 236.289,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.14719,
    "h": 274.6
  },
  "luminance": 0.05768
}

Semantic roles & 50–950 ramp

primary
#333994
secondary
#B7B26C
accent
#D04FD8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333994

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

Preview Lab → · Contrast checker → · Palette generator →

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