#333FA2#333FA2

#333FA2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.159 H 272.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#333FA2
RGBrgb(51, 63, 162)
HSLhsl(234, 52%, 42%)
HSVhsv(234, 69%, 64%)
CMYKcmyk(68.5%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.50, 28.61, -55.09)
CIE-LCHlch(31.50, 62.08, 297.44°)
OKLaboklab(42.08% 0.0064 -0.1588)
OKLCHoklch(42.08% 0.159 272.3)
XYZxyz(9.6621, 6.8666, 34.9916)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA2 #A29633
analogous
#3377A2 #333FA2 #5F33A2
triadic
#333FA2 #A2333F #3FA233
tetradic
#333FA2 #A23377 #A29633 #33A25F
square
#333FA2 #A23377 #A29633 #33A25F
split-complementary
#333FA2 #A25F33 #77A233
monochromatic
#161B45 #242D73 #333FA2 #4C59C7 #7A84D5

Accessibility & contrast

On white

8.85
#333FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#333FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA2#FFFFFF#000000##FFFFFF
##333FA21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333fa2;
/* rgb */ color: rgb(51, 63, 162);
/* oklch */ color: oklch(42.1% 0.159 272.3);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#333fa2',
    950: '#000000',
  },
}
SCSS
$custom: #333fa2;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa2",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 233.514,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4208,
    "c": 0.15895,
    "h": 272.3
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#333FA2
secondary
#BEB673
accent
#CC4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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