#333AA3#333AA3

#333AA3 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.167 H 273.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#333AA3
RGBrgb(51, 58, 163)
HSLhsl(236, 52%, 42%)
HSVhsv(236, 69%, 64%)
CMYKcmyk(68.7%, 64.4%, 0%, 36.1%)
CIE-LABlab(30.34, 32.21, -57.60)
CIE-LCHlch(30.34, 66.00, 299.22°)
OKLaboklab(41.25% 0.0104 -0.1662)
OKLCHoklch(41.25% 0.167 273.6)
XYZxyz(9.4870, 6.3734, 35.3735)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA3 #A39C33
analogous
#3372A3 #333AA3 #6433A3
triadic
#333AA3 #A3333A #3AA333
tetradic
#333AA3 #A33372 #A39C33 #33A364
square
#333AA3 #A33372 #A39C33 #33A364
split-complementary
#333AA3 #A36433 #72A333
monochromatic
#161946 #242974 #333AA3 #4C54C7 #7B80D6

Accessibility & contrast

On white

9.23
#333AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#333AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AA3
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA3#FFFFFF#000000##FFFFFF
##333AA31.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333aa3;
/* rgb */ color: rgb(51, 58, 163);
/* oklch */ color: oklch(41.2% 0.167 273.6);
Tailwind
colors: {
  custom: {
    50: '#7970bf',
    500: '#333aa3',
    950: '#000000',
  },
}
SCSS
$custom: #333aa3;
$custom-light: #7970bf;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa3",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 236.25,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41248,
    "c": 0.16654,
    "h": 273.6
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#333AA3
secondary
#BEBA73
accent
#D34CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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