#333BAA#333BAA

#333BAA is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.175 H 273.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#333BAA
RGBrgb(51, 59, 170)
HSLhsl(236, 54%, 43%)
HSVhsv(236, 70%, 67%)
CMYKcmyk(70%, 65.3%, 0%, 33.3%)
CIE-LABlab(31.19, 34.06, -60.41)
CIE-LCHlch(31.19, 69.35, 299.41°)
OKLaboklab(42.06% 0.0091 -0.1744)
OKLCHoklch(42.06% 0.175 273)
XYZxyz(10.1825, 6.7330, 38.7854)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BAA #AAA233
analogous
#3376AA #333BAA #6633AA
triadic
#333BAA #AA333B #3BAA33
tetradic
#333BAA #AA3376 #AAA233 #33AA66
square
#333BAA #AA3376 #AAA233 #33AA66
split-complementary
#333BAA #AA6633 #76AA33
monochromatic
#171A4C #252B7B #333BAA #5058CA #7F85D9

Accessibility & contrast

On white

8.95
#333BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333BAA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BAA#FFFFFF#000000##FFFFFF
##333BAA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333baa;
/* rgb */ color: rgb(51, 59, 170);
/* oklch */ color: oklch(42.1% 0.175 273.0);
Tailwind
colors: {
  custom: {
    50: '#7b71c4',
    500: '#333baa',
    950: '#000000',
  },
}
SCSS
$custom: #333baa;
$custom-light: #7b71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#333baa",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 170
  },
  "hsl": {
    "h": 235.966,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42063,
    "c": 0.17469,
    "h": 273
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#333BAA
secondary
#C2BD77
accent
#D34BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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