#3333A1#3333A1

#3333A1 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.172 H 275.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#3333A1
RGBrgb(51, 51, 161)
HSLhsl(240, 52%, 42%)
HSVhsv(240, 68%, 63%)
CMYKcmyk(68.3%, 68.3%, 0%, 36.9%)
CIE-LABlab(28.50, 35.94, -59.40)
CIE-LCHlch(28.50, 69.43, 301.17°)
OKLaboklab(39.85% 0.0158 -0.1715)
OKLCHoklch(39.85% 0.172 275.2)
XYZxyz(8.9800, 5.6439, 34.3274)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3333A1 #A1A133
analogous
#336AA1 #3333A1 #6A33A1
triadic
#3333A1 #A13333 #33A133
tetradic
#3333A1 #A1336A #A1A133 #33A16A
square
#3333A1 #A1336A #A1A133 #33A16A
split-complementary
#3333A1 #A16A33 #6AA133
monochromatic
#161644 #242473 #3333A1 #4B4BC6 #7A7AD5

Accessibility & contrast

On white

9.86
#3333A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3333A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3333A1
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3333A1#FFFFFF#000000##FFFFFF
##3333A11.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3333a1;
/* rgb */ color: rgb(51, 51, 161);
/* oklch */ color: oklch(39.9% 0.172 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a6bbe',
    500: '#3333a1',
    950: '#000000',
  },
}
SCSS
$custom: #3333a1;
$custom-light: #7a6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3333a1",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 161
  },
  "hsl": {
    "h": 240,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39853,
    "c": 0.17225,
    "h": 275.2
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#3333A1
secondary
#BDBD72
accent
#DB4CDB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3333A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3333A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva