#333FAF#333FAF

#333FAF is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.177 H 271.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#333FAF
RGBrgb(51, 63, 175)
HSLhsl(234, 55%, 44%)
HSVhsv(234, 71%, 69%)
CMYKcmyk(70.9%, 64%, 0%, 31.4%)
CIE-LABlab(32.60, 33.29, -61.10)
CIE-LCHlch(32.60, 69.58, 298.58°)
OKLaboklab(43.23% 0.0059 -0.1764)
OKLCHoklch(43.23% 0.177 271.9)
XYZxyz(10.8780, 7.3529, 41.3951)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FAF #AFA333
analogous
#337DAF #333FAF #6533AF
triadic
#333FAF #AF333F #3FAF33
tetradic
#333FAF #AF337D #AFA333 #33AF65
square
#333FAF #AF337D #AFA333 #33AF65
split-complementary
#333FAF #AF6533 #7DAF33
monochromatic
#171D50 #252E80 #333FAF #525ECD #828ADB

Accessibility & contrast

On white

8.50
#333FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#333FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FAF
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FAF#FFFFFF#000000##FFFFFF
##333FAF1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #333faf;
/* rgb */ color: rgb(51, 63, 175);
/* oklch */ color: oklch(43.2% 0.177 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c74c8',
    500: '#333faf',
    950: '#000000',
  },
}
SCSS
$custom: #333faf;
$custom-light: #7c74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#333faf",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 234.194,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43228,
    "c": 0.17654,
    "h": 271.9
  },
  "luminance": 0.07354
}

Semantic roles & 50–950 ramp

primary
#333FAF
secondary
#C4BD7A
accent
#D04ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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