#333FAC#333FAC

#333FAC is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.173 H 272.0°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#333FAC
RGBrgb(51, 63, 172)
HSLhsl(234, 54%, 44%)
HSVhsv(234, 70%, 67%)
CMYKcmyk(70.3%, 63.4%, 0%, 32.5%)
CIE-LABlab(32.34, 32.21, -59.73)
CIE-LCHlch(32.34, 67.86, 298.34°)
OKLaboklab(42.96% 0.0061 -0.1724)
OKLCHoklch(42.96% 0.173 272)
XYZxyz(10.5866, 7.2364, 39.8606)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FAC #ACA033
analogous
#337BAC #333FAC #6333AC
triadic
#333FAC #AC333F #3FAC33
tetradic
#333FAC #AC337B #ACA033 #33AC63
square
#333FAC #AC337B #ACA033 #33AC63
split-complementary
#333FAC #AC6333 #7BAC33
monochromatic
#171C4E #252E7D #333FAC #515DCB #8089D9

Accessibility & contrast

On white

8.58
#333FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#333FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FAC
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FAC#FFFFFF#000000##FFFFFF
##333FAC1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333fac;
/* rgb */ color: rgb(51, 63, 172);
/* oklch */ color: oklch(43.0% 0.173 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b74c6',
    500: '#333fac',
    950: '#000000',
  },
}
SCSS
$custom: #333fac;
$custom-light: #7b74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#333fac",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 234.05,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42958,
    "c": 0.17254,
    "h": 272
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#333FAC
secondary
#C2BB78
accent
#CF4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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