#3339AB#3339AB

#3339AB is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.178 H 273.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#3339AB
RGBrgb(51, 57, 171)
HSLhsl(237, 54%, 44%)
HSVhsv(237, 70%, 67%)
CMYKcmyk(70.2%, 66.7%, 0%, 32.9%)
CIE-LABlab(30.81, 35.67, -61.64)
CIE-LCHlch(30.81, 71.22, 300.06°)
OKLaboklab(41.81% 0.0105 -0.1781)
OKLCHoklch(41.81% 0.178 273.4)
XYZxyz(10.1766, 6.5694, 39.2519)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3339AB #ABA533
analogous
#3375AB #3339AB #6933AB
triadic
#3339AB #AB3339 #39AB33
tetradic
#3339AB #AB3375 #ABA533 #33AB69
square
#3339AB #AB3375 #ABA533 #33AB69
split-complementary
#3339AB #AB6933 #75AB33
monochromatic
#171A4D #25297C #3339AB #5056CB #7F84D9

Accessibility & contrast

On white

9.08
#3339AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3339AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3339AB
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3339AB#FFFFFF#000000##FFFFFF
##3339AB1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3339ab;
/* rgb */ color: rgb(51, 57, 171);
/* oklch */ color: oklch(41.8% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#7b70c5',
    500: '#3339ab',
    950: '#000000',
  },
}
SCSS
$custom: #3339ab;
$custom-light: #7b70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3339ab",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 237,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4181,
    "c": 0.17838,
    "h": 273.4
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#3339AB
secondary
#C2BE78
accent
#D64ADD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3339AB

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

Preview Lab → · Contrast checker → · Palette generator →

#3339AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva