#333FB4#333FB4

#333FB4 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.183 H 271.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#333FB4
RGBrgb(51, 63, 180)
HSLhsl(234, 56%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(71.7%, 65%, 0%, 29.4%)
CIE-LABlab(33.03, 35.07, -63.35)
CIE-LCHlch(33.03, 72.41, 298.97°)
OKLaboklab(43.68% 0.0056 -0.183)
OKLCHoklch(43.68% 0.183 271.8)
XYZxyz(11.3782, 7.5530, 44.0294)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FB4 #B4A833
analogous
#337FB4 #333FB4 #6833B4
triadic
#333FB4 #B4333F #3FB433
tetradic
#333FB4 #B4337F #B4A833 #33B468
square
#333FB4 #B4337F #B4A833 #33B468
split-complementary
#333FB4 #B46833 #7FB433
monochromatic
#181E55 #252E84 #333FB4 #5561CF #858DDC

Accessibility & contrast

On white

8.36
#333FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#333FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FB4
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FB4#FFFFFF#000000##FFFFFF
##333FB41.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #333fb4;
/* rgb */ color: rgb(51, 63, 180);
/* oklch */ color: oklch(43.7% 0.183 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d74cb',
    500: '#333fb4',
    950: '#000000',
  },
}
SCSS
$custom: #333fb4;
$custom-light: #7d74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#333fb4",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 234.419,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43683,
    "c": 0.18314,
    "h": 271.8
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#333FB4
secondary
#C6BF7D
accent
#D149DF
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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