#333FB8#333FB8

#333FB8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.1% C 0.188 H 271.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#333FB8
RGBrgb(51, 63, 184)
HSLhsl(235, 57%, 46%)
HSVhsv(235, 72%, 72%)
CMYKcmyk(72.3%, 65.8%, 0%, 27.8%)
CIE-LABlab(33.39, 36.49, -65.14)
CIE-LCHlch(33.39, 74.66, 299.25°)
OKLaboklab(44.05% 0.0054 -0.1883)
OKLCHoklch(44.05% 0.188 271.6)
XYZxyz(11.7915, 7.7183, 46.2065)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FB8 #B8AC33
analogous
#3381B8 #333FB8 #6933B8
triadic
#333FB8 #B8333F #3FB833
tetradic
#333FB8 #B83381 #B8AC33 #33B869
square
#333FB8 #B83381 #B8AC33 #33B869
split-complementary
#333FB8 #B86933 #81B833
monochromatic
#181E58 #262F88 #333FB8 #5863D1 #888FDE

Accessibility & contrast

On white

8.25
#333FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#333FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FB8
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FB8#FFFFFF#000000##FFFFFF
##333FB81.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #333fb8;
/* rgb */ color: rgb(51, 63, 184);
/* oklch */ color: oklch(44.1% 0.188 271.6);
Tailwind
colors: {
  custom: {
    50: '#7e74ce',
    500: '#333fb8',
    950: '#000000',
  },
}
SCSS
$custom: #333fb8;
$custom-light: #7e74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#333fb8",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 234.586,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.18836,
    "h": 271.6
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#333FB8
secondary
#C8C17F
accent
#D248E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #333FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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