#333395#333395

#333395 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.156 H 276.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#333395
RGBrgb(51, 51, 149)
HSLhsl(240, 49%, 39%)
HSVhsv(240, 66%, 58%)
CMYKcmyk(65.8%, 65.8%, 0%, 41.6%)
CIE-LABlab(27.41, 31.76, -53.86)
CIE-LCHlch(27.41, 62.53, 300.52°)
OKLaboklab(38.73% 0.017 -0.1553)
OKLCHoklch(38.73% 0.156 276.3)
XYZxyz(7.9721, 5.2407, 29.0194)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333395 #959533
analogous
#336495 #333395 #643395
triadic
#333395 #953333 #339533
tetradic
#333395 #953364 #959533 #339564
square
#333395 #953364 #959533 #339564
split-complementary
#333395 #956433 #649533
monochromatic
#14143A #232367 #333395 #4646C0 #7373CF

Accessibility & contrast

On white

10.25
#333395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#333395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333395
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333395#FFFFFF#000000##FFFFFF
##3333951.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333395;
/* rgb */ color: rgb(51, 51, 149);
/* oklch */ color: oklch(38.7% 0.156 276.3);
Tailwind
colors: {
  custom: {
    50: '#776bb5',
    500: '#333395',
    950: '#000000',
  },
}
SCSS
$custom: #333395;
$custom-light: #776bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#333395",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.15623,
    "h": 276.3
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

primary
#333395
secondary
#B7B76C
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333395

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

Preview Lab → · Contrast checker → · Palette generator →

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