#3335B1#3335B1

#3335B1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.191 H 273.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#3335B1
RGBrgb(51, 53, 177)
HSLhsl(239, 55%, 45%)
HSVhsv(239, 71%, 69%)
CMYKcmyk(71.2%, 70.1%, 0%, 30.6%)
CIE-LABlab(30.46, 40.21, -65.80)
CIE-LCHlch(30.46, 77.12, 301.43°)
OKLaboklab(41.73% 0.0124 -0.1902)
OKLCHoklch(41.73% 0.191 273.7)
XYZxyz(10.5715, 6.4233, 42.2691)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3335B1 #B1AF33
analogous
#3374B1 #3335B1 #7033B1
triadic
#3335B1 #B13335 #35B133
tetradic
#3335B1 #B13374 #B1AF33 #33B170
square
#3335B1 #B13374 #B1AF33 #33B170
split-complementary
#3335B1 #B17033 #74B133
monochromatic
#181952 #252781 #3335B1 #5456CE #8385DB

Accessibility & contrast

On white

9.19
#3335B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3335B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3335B1
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3335B1#FFFFFF#000000##FFFFFF
##3335B11.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3335b1;
/* rgb */ color: rgb(51, 53, 177);
/* oklch */ color: oklch(41.7% 0.191 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d6dc9',
    500: '#3335b1',
    950: '#000000',
  },
}
SCSS
$custom: #3335b1;
$custom-light: #7d6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3335b1",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 239.048,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41727,
    "c": 0.19064,
    "h": 273.7
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#3335B1
secondary
#C5C47B
accent
#DC49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3335B1

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

Preview Lab → · Contrast checker → · Palette generator →

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