#333FA1#333FA1

#333FA1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.158 H 272.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#333FA1
RGBrgb(51, 63, 161)
HSLhsl(233, 52%, 42%)
HSVhsv(233, 68%, 63%)
CMYKcmyk(68.3%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.42, 28.25, -54.62)
CIE-LCHlch(31.42, 61.49, 297.34°)
OKLaboklab(41.99% 0.0064 -0.1574)
OKLCHoklch(41.99% 0.158 272.3)
XYZxyz(9.5736, 6.8311, 34.5253)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA1 #A19533
analogous
#3376A1 #333FA1 #5E33A1
triadic
#333FA1 #A1333F #3FA133
tetradic
#333FA1 #A13376 #A19533 #33A15E
square
#333FA1 #A13376 #A19533 #33A15E
split-complementary
#333FA1 #A15E33 #76A133
monochromatic
#161B44 #242D73 #333FA1 #4B59C6 #7A84D5

Accessibility & contrast

On white

8.87
#333FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333FA1
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA1#FFFFFF#000000##FFFFFF
##333FA11.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333fa1;
/* rgb */ color: rgb(51, 63, 161);
/* oklch */ color: oklch(42.0% 0.158 272.3);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#333fa1',
    950: '#000000',
  },
}
SCSS
$custom: #333fa1;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa1",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 233.455,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41994,
    "c": 0.15757,
    "h": 272.3
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#333FA1
secondary
#BDB572
accent
#CC4CDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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