#333FA3#333FA3

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

Color values

HEX#333FA3
RGBrgb(51, 63, 163)
HSLhsl(234, 52%, 42%)
HSVhsv(234, 69%, 64%)
CMYKcmyk(68.7%, 61.3%, 0%, 36.1%)
CIE-LABlab(31.58, 28.97, -55.56)
CIE-LCHlch(31.58, 62.66, 297.54°)
OKLaboklab(42.17% 0.0064 -0.1602)
OKLCHoklch(42.17% 0.16 272.3)
XYZxyz(9.7514, 6.9023, 35.4616)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA3 #A39733
analogous
#3377A3 #333FA3 #5F33A3
triadic
#333FA3 #A3333F #3FA333
tetradic
#333FA3 #A33377 #A39733 #33A35F
square
#333FA3 #A33377 #A39733 #33A35F
split-complementary
#333FA3 #A35F33 #77A333
monochromatic
#161B46 #242D74 #333FA3 #4C59C7 #7B85D6

Accessibility & contrast

On white

8.82
#333FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#333FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA3
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA3#FFFFFF#000000##FFFFFF
##333FA31.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333fa3;
/* rgb */ color: rgb(51, 63, 163);
/* oklch */ color: oklch(42.2% 0.160 272.3);
Tailwind
colors: {
  custom: {
    50: '#7974bf',
    500: '#333fa3',
    950: '#000000',
  },
}
SCSS
$custom: #333fa3;
$custom-light: #7974bf;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa3",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 233.571,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.16033,
    "h": 272.3
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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