#333C95#333C95

#333C95 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.145 H 273.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#333C95
RGBrgb(51, 60, 149)
HSLhsl(234, 49%, 39%)
HSVhsv(234, 66%, 58%)
CMYKcmyk(65.8%, 59.7%, 0%, 41.6%)
CIE-LABlab(29.68, 25.88, -50.17)
CIE-LCHlch(29.68, 56.45, 297.28°)
OKLaboklab(40.4% 0.0091 -0.1444)
OKLCHoklch(40.4% 0.145 273.6)
XYZxyz(8.4041, 6.1047, 29.1634)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C95 #958C33
analogous
#336D95 #333C95 #5B3395
triadic
#333C95 #95333C #3C9533
tetradic
#333C95 #95336D #958C33 #33955B
square
#333C95 #95336D #958C33 #33955B
split-complementary
#333C95 #955B33 #6D9533
monochromatic
#14173A #232A67 #333C95 #4651C0 #737CCF

Accessibility & contrast

On white

9.46
#333C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#333C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C95
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C95#FFFFFF#000000##FFFFFF
##333C951.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333c95;
/* rgb */ color: rgb(51, 60, 149);
/* oklch */ color: oklch(40.4% 0.145 273.6);
Tailwind
colors: {
  custom: {
    50: '#7671b5',
    500: '#333c95',
    950: '#000000',
  },
}
SCSS
$custom: #333c95;
$custom-light: #7671b5;
$custom-dark: #000000;
JSON
{
  "hex": "#333c95",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 149
  },
  "hsl": {
    "h": 234.49,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40397,
    "c": 0.14467,
    "h": 273.6
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#333C95
secondary
#B7B06C
accent
#CC4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333C95

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

Preview Lab → · Contrast checker → · Palette generator →

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