#333AAB#333AAB

#333AAB is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.177 H 273.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#333AAB
RGBrgb(51, 58, 171)
HSLhsl(237, 54%, 44%)
HSVhsv(237, 70%, 67%)
CMYKcmyk(70.2%, 66.1%, 0%, 32.9%)
CIE-LABlab(31.04, 35.05, -61.25)
CIE-LCHlch(31.04, 70.57, 299.78°)
OKLaboklab(41.98% 0.0098 -0.1769)
OKLCHoklch(41.98% 0.177 273.2)
XYZxyz(10.2265, 6.6692, 39.2685)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AAB #ABA433
analogous
#3376AB #333AAB #6833AB
triadic
#333AAB #AB333A #3AAB33
tetradic
#333AAB #AB3376 #ABA433 #33AB68
square
#333AAB #AB3376 #ABA433 #33AB68
split-complementary
#333AAB #AB6833 #76AB33
monochromatic
#171A4D #252A7C #333AAB #5057CB #7F85D9

Accessibility & contrast

On white

9.00
#333AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#333AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AAB
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AAB#FFFFFF#000000##FFFFFF
##333AAB1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333aab;
/* rgb */ color: rgb(51, 58, 171);
/* oklch */ color: oklch(42.0% 0.177 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b70c5',
    500: '#333aab',
    950: '#000000',
  },
}
SCSS
$custom: #333aab;
$custom-light: #7b70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#333aab",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 236.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.1772,
    "h": 273.2
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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