#333FA4#333FA4

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

Color values

HEX#333FA4
RGBrgb(51, 63, 164)
HSLhsl(234, 53%, 42%)
HSVhsv(234, 69%, 64%)
CMYKcmyk(68.9%, 61.6%, 0%, 35.7%)
CIE-LABlab(31.67, 29.33, -56.03)
CIE-LCHlch(31.67, 63.24, 297.63°)
OKLaboklab(42.25% 0.0064 -0.1616)
OKLCHoklch(42.25% 0.162 272.3)
XYZxyz(9.8413, 6.9382, 35.9353)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA4 #A49833
analogous
#3378A4 #333FA4 #5F33A4
triadic
#333FA4 #A4333F #3FA433
tetradic
#333FA4 #A43378 #A49833 #33A45F
square
#333FA4 #A43378 #A49833 #33A45F
split-complementary
#333FA4 #A45F33 #78A433
monochromatic
#161B47 #242D75 #333FA4 #4D5AC8 #7B85D6

Accessibility & contrast

On white

8.79
#333FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#333FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA4
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA4#FFFFFF#000000##FFFFFF
##333FA41.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333fa4;
/* rgb */ color: rgb(51, 63, 164);
/* oklch */ color: oklch(42.3% 0.162 272.3);
Tailwind
colors: {
  custom: {
    50: '#7974c0',
    500: '#333fa4',
    950: '#000000',
  },
}
SCSS
$custom: #333fa4;
$custom-light: #7974c0;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa4",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 233.628,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42253,
    "c": 0.1617,
    "h": 272.3
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#333FA4
secondary
#BFB774
accent
#CD4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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