#333AC5#333AC5

#333AC5 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.5% C 0.210 H 271.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#333AC5
RGBrgb(51, 58, 197)
HSLhsl(237, 59%, 49%)
HSVhsv(237, 74%, 77%)
CMYKcmyk(74.1%, 70.6%, 0%, 22.7%)
CIE-LABlab(33.48, 44.04, -72.64)
CIE-LCHlch(33.48, 84.95, 301.23°)
OKLaboklab(44.48% 0.0069 -0.2102)
OKLCHoklch(44.48% 0.21 271.9)
XYZxyz(12.9529, 7.7598, 53.6276)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AC5 #C5BE33
analogous
#3383C5 #333AC5 #7533C5
triadic
#333AC5 #C5333A #3AC533
tetradic
#333AC5 #C53383 #C5BE33 #33C575
square
#333AC5 #C53383 #C5BE33 #33C575
split-complementary
#333AC5 #C57533 #83C533
monochromatic
#1A1D64 #262C94 #333AC5 #5F65D6 #9094E2

Accessibility & contrast

On white

8.23
#333AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#333AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AC5
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AC5#FFFFFF#000000##FFFFFF
##333AC51.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #333ac5;
/* rgb */ color: rgb(51, 58, 197);
/* oklch */ color: oklch(44.5% 0.210 271.9);
Tailwind
colors: {
  custom: {
    50: '#8171d8',
    500: '#333ac5',
    950: '#000000',
  },
}
SCSS
$custom: #333ac5;
$custom-light: #8171d8;
$custom-dark: #000000;
JSON
{
  "hex": "#333ac5",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 237.123,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.44484,
    "c": 0.21031,
    "h": 271.9
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#333AC5
secondary
#CDCA87
accent
#DB46E2
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #333AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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