#333B95#333B95

#333B95 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.146 H 273.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#333B95
RGBrgb(51, 59, 149)
HSLhsl(235, 49%, 39%)
HSVhsv(235, 66%, 58%)
CMYKcmyk(65.8%, 60.4%, 0%, 41.6%)
CIE-LABlab(29.41, 26.54, -50.59)
CIE-LCHlch(29.41, 57.13, 297.68°)
OKLaboklab(40.2% 0.0101 -0.1456)
OKLCHoklch(40.2% 0.146 273.9)
XYZxyz(8.3522, 6.0009, 29.1461)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B95 #958D33
analogous
#336C95 #333B95 #5C3395
triadic
#333B95 #95333B #3B9533
tetradic
#333B95 #95336C #958D33 #33955C
square
#333B95 #95336C #958D33 #33955C
split-complementary
#333B95 #955C33 #6C9533
monochromatic
#14173A #232967 #333B95 #4650C0 #737BCF

Accessibility & contrast

On white

9.54
#333B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#333B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B95
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B95#FFFFFF#000000##FFFFFF
##333B951.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333b95;
/* rgb */ color: rgb(51, 59, 149);
/* oklch */ color: oklch(40.2% 0.146 273.9);
Tailwind
colors: {
  custom: {
    50: '#7671b5',
    500: '#333b95',
    950: '#000000',
  },
}
SCSS
$custom: #333b95;
$custom-light: #7671b5;
$custom-dark: #000000;
JSON
{
  "hex": "#333b95",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 149
  },
  "hsl": {
    "h": 235.102,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40204,
    "c": 0.14599,
    "h": 273.9
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#333B95
secondary
#B7B16C
accent
#CD4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333B95

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

Preview Lab → · Contrast checker → · Palette generator →

#333B95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva