#333FB1#333FB1

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

Color values

HEX#333FB1
RGBrgb(51, 63, 177)
HSLhsl(234, 55%, 45%)
HSVhsv(234, 71%, 69%)
CMYKcmyk(71.2%, 64.4%, 0%, 30.6%)
CIE-LABlab(32.77, 34.00, -62.00)
CIE-LCHlch(32.77, 70.71, 298.74°)
OKLaboklab(43.41% 0.0058 -0.1791)
OKLCHoklch(43.41% 0.179 271.9)
XYZxyz(11.0759, 7.4321, 42.4373)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FB1 #B1A533
analogous
#337EB1 #333FB1 #6633B1
triadic
#333FB1 #B1333F #3FB133
tetradic
#333FB1 #B1337E #B1A533 #33B166
square
#333FB1 #B1337E #B1A533 #33B166
split-complementary
#333FB1 #B16633 #7EB133
monochromatic
#181D52 #252E81 #333FB1 #545FCE #838CDB

Accessibility & contrast

On white

8.45
#333FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#333FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FB1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FB1#FFFFFF#000000##FFFFFF
##333FB11.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #333fb1;
/* rgb */ color: rgb(51, 63, 177);
/* oklch */ color: oklch(43.4% 0.179 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c74c9',
    500: '#333fb1',
    950: '#000000',
  },
}
SCSS
$custom: #333fb1;
$custom-light: #7c74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#333fb1",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 234.286,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43409,
    "c": 0.17918,
    "h": 271.9
  },
  "luminance": 0.07433
}

Semantic roles & 50–950 ramp

primary
#333FB1
secondary
#C5BE7B
accent
#D049DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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