#333BAB#333BAB

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

Color values

HEX#333BAB
RGBrgb(51, 59, 171)
HSLhsl(236, 54%, 44%)
HSVhsv(236, 70%, 67%)
CMYKcmyk(70.2%, 65.5%, 0%, 32.9%)
CIE-LABlab(31.28, 34.41, -60.86)
CIE-LCHlch(31.28, 69.92, 299.48°)
OKLaboklab(42.16% 0.0091 -0.1758)
OKLCHoklch(42.16% 0.176 272.9)
XYZxyz(10.2774, 6.7710, 39.2855)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BAB #ABA333
analogous
#3377AB #333BAB #6733AB
triadic
#333BAB #AB333B #3BAB33
tetradic
#333BAB #AB3377 #ABA333 #33AB67
square
#333BAB #AB3377 #ABA333 #33AB67
split-complementary
#333BAB #AB6733 #77AB33
monochromatic
#171A4D #252B7C #333BAB #5058CB #7F85D9

Accessibility & contrast

On white

8.92
#333BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#333BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BAB
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BAB#FFFFFF#000000##FFFFFF
##333BAB1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333bab;
/* rgb */ color: rgb(51, 59, 171);
/* oklch */ color: oklch(42.2% 0.176 272.9);
Tailwind
colors: {
  custom: {
    50: '#7b71c5',
    500: '#333bab',
    950: '#000000',
  },
}
SCSS
$custom: #333bab;
$custom-light: #7b71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#333bab",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 236,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42155,
    "c": 0.17601,
    "h": 272.9
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#333BAB
secondary
#C2BD78
accent
#D44ADD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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