#333FB5#333FB5

#333FB5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.184 H 271.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#333FB5
RGBrgb(51, 63, 181)
HSLhsl(234, 56%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(71.8%, 65.2%, 0%, 29%)
CIE-LABlab(33.12, 35.42, -63.80)
CIE-LCHlch(33.12, 72.98, 299.04°)
OKLaboklab(43.77% 0.0056 -0.1844)
OKLCHoklch(43.77% 0.184 271.7)
XYZxyz(11.4804, 7.5939, 44.5678)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FB5 #B5A933
analogous
#3380B5 #333FB5 #6833B5
triadic
#333FB5 #B5333F #3FB533
tetradic
#333FB5 #B53380 #B5A933 #33B568
square
#333FB5 #B53380 #B5A933 #33B568
split-complementary
#333FB5 #B56833 #80B533
monochromatic
#181E56 #262E85 #333FB5 #5661CF #868EDD

Accessibility & contrast

On white

8.34
#333FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#333FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FB5
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FB5#FFFFFF#000000##FFFFFF
##333FB51.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333fb5;
/* rgb */ color: rgb(51, 63, 181);
/* oklch */ color: oklch(43.8% 0.184 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d74cc',
    500: '#333fb5',
    950: '#000000',
  },
}
SCSS
$custom: #333fb5;
$custom-light: #7d74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333fb5",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 234.462,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43774,
    "c": 0.18444,
    "h": 271.7
  },
  "luminance": 0.07595
}

Semantic roles & 50–950 ramp

primary
#333FB5
secondary
#C6C07D
accent
#D148DF
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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