#333BB4#333BB4

#333BB4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.0% C 0.188 H 272.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#333BB4
RGBrgb(51, 59, 180)
HSLhsl(236, 56%, 45%)
HSVhsv(236, 72%, 71%)
CMYKcmyk(71.7%, 67.2%, 0%, 29.4%)
CIE-LABlab(32.09, 37.58, -64.90)
CIE-LCHlch(32.09, 74.99, 300.07°)
OKLaboklab(43% 0.0083 -0.1876)
OKLCHoklch(43% 0.188 272.5)
XYZxyz(11.1647, 7.1259, 43.9582)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BB4 #B4AC33
analogous
#337BB4 #333BB4 #6B33B4
triadic
#333BB4 #B4333B #3BB433
tetradic
#333BB4 #B4337B #B4AC33 #33B46B
square
#333BB4 #B4337B #B4AC33 #33B46B
split-complementary
#333BB4 #B46B33 #7BB433
monochromatic
#181C55 #252B84 #333BB4 #555DCF #858ADC

Accessibility & contrast

On white

8.66
#333BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333BB4
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BB4#FFFFFF#000000##FFFFFF
##333BB41.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333bb4;
/* rgb */ color: rgb(51, 59, 180);
/* oklch */ color: oklch(43.0% 0.188 272.5);
Tailwind
colors: {
  custom: {
    50: '#7d71cc',
    500: '#333bb4',
    950: '#000000',
  },
}
SCSS
$custom: #333bb4;
$custom-light: #7d71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333bb4",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 236.279,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.18777,
    "h": 272.5
  },
  "luminance": 0.07127
}

Semantic roles & 50–950 ramp

primary
#333BB4
secondary
#C6C17D
accent
#D649DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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