#333BB5#333BB5

#333BB5 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.189 H 272.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#333BB5
RGBrgb(51, 59, 181)
HSLhsl(236, 56%, 45%)
HSVhsv(236, 72%, 71%)
CMYKcmyk(71.8%, 67.4%, 0%, 29%)
CIE-LABlab(32.18, 37.93, -65.34)
CIE-LCHlch(32.18, 75.55, 300.13°)
OKLaboklab(43.09% 0.0082 -0.1889)
OKLCHoklch(43.09% 0.189 272.5)
XYZxyz(11.2669, 7.1668, 44.4967)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BB5 #B5AD33
analogous
#337CB5 #333BB5 #6C33B5
triadic
#333BB5 #B5333B #3BB533
tetradic
#333BB5 #B5337C #B5AD33 #33B56C
square
#333BB5 #B5337C #B5AD33 #33B56C
split-complementary
#333BB5 #B56C33 #7CB533
monochromatic
#181C56 #262B85 #333BB5 #565DCF #868BDD

Accessibility & contrast

On white

8.63
#333BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#333BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BB5
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BB5#FFFFFF#000000##FFFFFF
##333BB51.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333bb5;
/* rgb */ color: rgb(51, 59, 181);
/* oklch */ color: oklch(43.1% 0.189 272.5);
Tailwind
colors: {
  custom: {
    50: '#7d71cc',
    500: '#333bb5',
    950: '#000000',
  },
}
SCSS
$custom: #333bb5;
$custom-light: #7d71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333bb5",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 236.308,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4309,
    "c": 0.18907,
    "h": 272.5
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#333BB5
secondary
#C6C27D
accent
#D648DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #333BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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