#333995#333995

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

Color values

HEX#333995
RGBrgb(51, 57, 149)
HSLhsl(236, 49%, 39%)
HSVhsv(236, 66%, 58%)
CMYKcmyk(65.8%, 61.7%, 0%, 41.6%)
CIE-LABlab(28.90, 27.86, -51.43)
CIE-LCHlch(28.90, 58.49, 298.44°)
OKLaboklab(39.82% 0.0119 -0.1481)
OKLCHoklch(39.82% 0.149 274.6)
XYZxyz(8.2514, 5.7993, 29.1125)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333995 #958F33
analogous
#336A95 #333995 #5E3395
triadic
#333995 #953339 #399533
tetradic
#333995 #95336A #958F33 #33955E
square
#333995 #95336A #958F33 #33955E
split-complementary
#333995 #955E33 #6A9533
monochromatic
#14163A #232867 #333995 #464DC0 #7379CF

Accessibility & contrast

On white

9.72
#333995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#333995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333995
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333995#FFFFFF#000000##FFFFFF
##3339951.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333995;
/* rgb */ color: rgb(51, 57, 149);
/* oklch */ color: oklch(39.8% 0.149 274.6);
Tailwind
colors: {
  custom: {
    50: '#776fb5',
    500: '#333995',
    950: '#000000',
  },
}
SCSS
$custom: #333995;
$custom-light: #776fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#333995",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 149
  },
  "hsl": {
    "h": 236.327,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39824,
    "c": 0.14859,
    "h": 274.6
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#333995
secondary
#B7B36C
accent
#D04FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333995

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

Preview Lab → · Contrast checker → · Palette generator →

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