#3335B2#3335B2

#3335B2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.192 H 273.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#3335B2
RGBrgb(51, 53, 178)
HSLhsl(239, 55%, 45%)
HSVhsv(239, 71%, 70%)
CMYKcmyk(71.3%, 70.2%, 0%, 30.2%)
CIE-LABlab(30.55, 40.55, -66.24)
CIE-LCHlch(30.55, 77.67, 301.48°)
OKLaboklab(41.83% 0.0122 -0.1915)
OKLCHoklch(41.83% 0.192 273.7)
XYZxyz(10.6715, 6.4633, 42.7960)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3335B2 #B2B033
analogous
#3375B2 #3335B2 #7033B2
triadic
#3335B2 #B23335 #35B233
tetradic
#3335B2 #B23375 #B2B033 #33B270
square
#3335B2 #B23375 #B2B033 #33B270
split-complementary
#3335B2 #B27033 #75B233
monochromatic
#181953 #252782 #3335B2 #5456CE #8485DC

Accessibility & contrast

On white

9.16
#3335B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3335B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3335B2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3335B2#FFFFFF#000000##FFFFFF
##3335B21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3335b2;
/* rgb */ color: rgb(51, 53, 178);
/* oklch */ color: oklch(41.8% 0.192 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d6dca',
    500: '#3335b2',
    950: '#000000',
  },
}
SCSS
$custom: #3335b2;
$custom-light: #7d6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#3335b2",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 239.055,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.1919,
    "h": 273.7
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#3335B2
secondary
#C5C47C
accent
#DC49DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3335B2

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

Preview Lab → · Contrast checker → · Palette generator →

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