#333C94#333C94

#333C94 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.143 H 273.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#333C94
RGBrgb(51, 60, 148)
HSLhsl(234, 49%, 39%)
HSVhsv(234, 66%, 58%)
CMYKcmyk(65.5%, 59.5%, 0%, 42%)
CIE-LABlab(29.60, 25.51, -49.69)
CIE-LCHlch(29.60, 55.86, 297.18°)
OKLaboklab(40.31% 0.0091 -0.143)
OKLCHoklch(40.31% 0.143 273.7)
XYZxyz(8.3246, 6.0729, 28.7447)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C94 #948B33
analogous
#336D94 #333C94 #5B3394
triadic
#333C94 #94333C #3C9433
tetradic
#333C94 #94336D #948B33 #33945B
square
#333C94 #94336D #948B33 #33945B
split-complementary
#333C94 #945B33 #6D9433
monochromatic
#141739 #232A66 #333C94 #4551BF #737BCF

Accessibility & contrast

On white

9.48
#333C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#333C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C94
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C94#FFFFFF#000000##FFFFFF
##333C941.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333c94;
/* rgb */ color: rgb(51, 60, 148);
/* oklch */ color: oklch(40.3% 0.143 273.7);
Tailwind
colors: {
  custom: {
    50: '#7671b4',
    500: '#333c94',
    950: '#000000',
  },
}
SCSS
$custom: #333c94;
$custom-light: #7671b4;
$custom-dark: #000000;
JSON
{
  "hex": "#333c94",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 148
  },
  "hsl": {
    "h": 234.433,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.14326,
    "h": 273.7
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333C94

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

Preview Lab → · Contrast checker → · Palette generator →

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