#3335B8#3335B8

#3335B8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.4% C 0.199 H 273.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3335B8
RGBrgb(51, 53, 184)
HSLhsl(239, 57%, 46%)
HSVhsv(239, 72%, 72%)
CMYKcmyk(72.3%, 71.2%, 0%, 27.8%)
CIE-LABlab(31.14, 42.59, -68.84)
CIE-LCHlch(31.14, 80.95, 301.74°)
OKLaboklab(42.42% 0.0114 -0.1991)
OKLCHoklch(42.42% 0.199 273.3)
XYZxyz(11.2872, 6.7096, 46.0383)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3335B8 #B8B633
analogous
#3377B8 #3335B8 #7333B8
triadic
#3335B8 #B83335 #35B833
tetradic
#3335B8 #B83377 #B8B633 #33B873
square
#3335B8 #B83377 #B8B633 #33B873
split-complementary
#3335B8 #B87333 #77B833
monochromatic
#181958 #262788 #3335B8 #5859D1 #8889DE

Accessibility & contrast

On white

8.97
#3335B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3335B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3335B8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3335B8#FFFFFF#000000##FFFFFF
##3335B81.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3335b8;
/* rgb */ color: rgb(51, 53, 184);
/* oklch */ color: oklch(42.4% 0.199 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f6dcf',
    500: '#3335b8',
    950: '#000000',
  },
}
SCSS
$custom: #3335b8;
$custom-light: #7f6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3335b8",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 239.098,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.19943,
    "h": 273.3
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#3335B8
secondary
#C8C77F
accent
#DE48E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3335B8

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

Preview Lab → · Contrast checker → · Palette generator →

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