#333FB7#333FB7

#333FB7 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.187 H 271.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#333FB7
RGBrgb(51, 63, 183)
HSLhsl(235, 56%, 46%)
HSVhsv(235, 72%, 72%)
CMYKcmyk(72.1%, 65.6%, 0%, 28.2%)
CIE-LABlab(33.30, 36.13, -64.70)
CIE-LCHlch(33.30, 74.10, 299.18°)
OKLaboklab(43.96% 0.0054 -0.187)
OKLCHoklch(43.96% 0.187 271.7)
XYZxyz(11.6871, 7.6765, 45.6564)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FB7 #B7AB33
analogous
#3381B7 #333FB7 #6933B7
triadic
#333FB7 #B7333F #3FB733
tetradic
#333FB7 #B73381 #B7AB33 #33B769
square
#333FB7 #B73381 #B7AB33 #33B769
split-complementary
#333FB7 #B76933 #81B733
monochromatic
#181E57 #262F87 #333FB7 #5762D0 #878FDE

Accessibility & contrast

On white

8.28
#333FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333FB7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FB7#FFFFFF#000000##FFFFFF
##333FB71.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #333fb7;
/* rgb */ color: rgb(51, 63, 183);
/* oklch */ color: oklch(44.0% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#7e74ce',
    500: '#333fb7',
    950: '#000000',
  },
}
SCSS
$custom: #333fb7;
$custom-light: #7e74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#333fb7",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 234.545,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.18706,
    "h": 271.7
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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