#333AAA#333AAA

#333AAA is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.176 H 273.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#333AAA
RGBrgb(51, 58, 170)
HSLhsl(236, 54%, 43%)
HSVhsv(236, 70%, 67%)
CMYKcmyk(70%, 65.9%, 0%, 33.3%)
CIE-LABlab(30.95, 34.69, -60.80)
CIE-LCHlch(30.95, 70.00, 299.71°)
OKLaboklab(41.89% 0.0099 -0.1756)
OKLCHoklch(41.89% 0.176 273.2)
XYZxyz(10.1316, 6.6312, 38.7684)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AAA #AAA333
analogous
#3375AA #333AAA #6833AA
triadic
#333AAA #AA333A #3AAA33
tetradic
#333AAA #AA3375 #AAA333 #33AA68
square
#333AAA #AA3375 #AAA333 #33AA68
split-complementary
#333AAA #AA6833 #75AA33
monochromatic
#171A4C #252A7B #333AAA #5057CA #7F84D9

Accessibility & contrast

On white

9.03
#333AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333AAA
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AAA#FFFFFF#000000##FFFFFF
##333AAA1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333aaa;
/* rgb */ color: rgb(51, 58, 170);
/* oklch */ color: oklch(41.9% 0.176 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b70c4',
    500: '#333aaa',
    950: '#000000',
  },
}
SCSS
$custom: #333aaa;
$custom-light: #7b70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#333aaa",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 236.471,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41889,
    "c": 0.17588,
    "h": 273.2
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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