#333BAC#333BAC

#333BAC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.177 H 272.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#333BAC
RGBrgb(51, 59, 172)
HSLhsl(236, 54%, 44%)
HSVhsv(236, 70%, 67%)
CMYKcmyk(70.3%, 65.7%, 0%, 32.5%)
CIE-LABlab(31.37, 34.77, -61.32)
CIE-LCHlch(31.37, 70.49, 299.55°)
OKLaboklab(42.25% 0.009 -0.1771)
OKLCHoklch(42.25% 0.177 272.9)
XYZxyz(10.3731, 6.8093, 39.7894)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BAC #ACA433
analogous
#3377AC #333BAC #6733AC
triadic
#333BAC #AC333B #3BAC33
tetradic
#333BAC #AC3377 #ACA433 #33AC67
square
#333BAC #AC3377 #ACA433 #33AC67
split-complementary
#333BAC #AC6733 #77AC33
monochromatic
#171B4E #252B7D #333BAC #5159CB #8086D9

Accessibility & contrast

On white

8.89
#333BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#333BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BAC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BAC#FFFFFF#000000##FFFFFF
##333BAC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333bac;
/* rgb */ color: rgb(51, 59, 172);
/* oklch */ color: oklch(42.2% 0.177 272.9);
Tailwind
colors: {
  custom: {
    50: '#7b71c6',
    500: '#333bac',
    950: '#000000',
  },
}
SCSS
$custom: #333bac;
$custom-light: #7b71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#333bac",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 236.033,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42248,
    "c": 0.17734,
    "h": 272.9
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#333BAC
secondary
#C2BE78
accent
#D44ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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