#333AA2#333AA2

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

Color values

HEX#333AA2
RGBrgb(51, 58, 162)
HSLhsl(236, 52%, 42%)
HSVhsv(236, 69%, 64%)
CMYKcmyk(68.5%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.25, 31.86, -57.14)
CIE-LCHlch(30.25, 65.42, 299.14°)
OKLaboklab(41.16% 0.0104 -0.1649)
OKLCHoklch(41.16% 0.165 273.6)
XYZxyz(9.3977, 6.3377, 34.9035)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA2 #A29B33
analogous
#3372A2 #333AA2 #6433A2
triadic
#333AA2 #A2333A #3AA233
tetradic
#333AA2 #A23372 #A29B33 #33A264
square
#333AA2 #A23372 #A29B33 #33A264
split-complementary
#333AA2 #A26433 #72A233
monochromatic
#161945 #242973 #333AA2 #4C53C7 #7A80D5

Accessibility & contrast

On white

9.26
#333AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333AA2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA2#FFFFFF#000000##FFFFFF
##333AA21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333aa2;
/* rgb */ color: rgb(51, 58, 162);
/* oklch */ color: oklch(41.2% 0.165 273.6);
Tailwind
colors: {
  custom: {
    50: '#7970be',
    500: '#333aa2',
    950: '#000000',
  },
}
SCSS
$custom: #333aa2;
$custom-light: #7970be;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa2",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 236.216,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41158,
    "c": 0.16519,
    "h": 273.6
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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