#3339B1#3339B1

#3339B1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.186 H 273.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#3339B1
RGBrgb(51, 57, 177)
HSLhsl(237, 55%, 45%)
HSVhsv(237, 71%, 69%)
CMYKcmyk(71.2%, 67.8%, 0%, 30.6%)
CIE-LABlab(31.35, 37.77, -64.33)
CIE-LCHlch(31.35, 74.60, 300.42°)
OKLaboklab(42.38% 0.0099 -0.1859)
OKLCHoklch(42.38% 0.186 273)
XYZxyz(10.7615, 6.8033, 42.3325)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3339B1 #B1AB33
analogous
#3378B1 #3339B1 #6C33B1
triadic
#3339B1 #B13339 #39B133
tetradic
#3339B1 #B13378 #B1AB33 #33B16C
square
#3339B1 #B13378 #B1AB33 #33B16C
split-complementary
#3339B1 #B16C33 #78B133
monochromatic
#181A52 #252A81 #3339B1 #5459CE #8387DB

Accessibility & contrast

On white

8.90
#3339B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3339B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3339B1
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3339B1#FFFFFF#000000##FFFFFF
##3339B11.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3339b1;
/* rgb */ color: rgb(51, 57, 177);
/* oklch */ color: oklch(42.4% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d70c9',
    500: '#3339b1',
    950: '#000000',
  },
}
SCSS
$custom: #3339b1;
$custom-light: #7d70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3339b1",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 237.143,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.18618,
    "h": 273
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#3339B1
secondary
#C5C17B
accent
#D749DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3339B1

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

Preview Lab → · Contrast checker → · Palette generator →

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