#335AC6#335AC6

#335AC6 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.174 H 265.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#335AC6
RGBrgb(51, 90, 198)
HSLhsl(224, 59%, 49%)
HSVhsv(224, 74%, 78%)
CMYKcmyk(74.2%, 54.5%, 0%, 22.4%)
CIE-LABlab(41.36, 24.21, -60.33)
CIE-LCHlch(41.36, 65.01, 291.87°)
OKLaboklab(50.33% -0.0138 -0.1738)
OKLCHoklch(50.33% 0.174 265.5)
XYZxyz(15.2109, 12.0917, 54.9474)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC6 #C69F33
analogous
#33A4C6 #335AC6 #5633C6
triadic
#335AC6 #C6335A #5AC633
tetradic
#335AC6 #C633A4 #C69F33 #33C656
square
#335AC6 #C633A4 #C69F33 #33C656
split-complementary
#335AC6 #C65633 #A4C633
monochromatic
#1A2E65 #264495 #335AC6 #607FD6 #91A6E3

Accessibility & contrast

On white

6.14
#335AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#335AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC6
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC6#FFFFFF#000000##FFFFFF
##335AC61.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CA
Deuteranopia (green-blind)
#005BC4
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335ac6;
/* rgb */ color: rgb(51, 90, 198);
/* oklch */ color: oklch(50.3% 0.174 265.5);
Tailwind
colors: {
  custom: {
    50: '#7f88d8',
    500: '#335ac6',
    950: '#000000',
  },
}
SCSS
$custom: #335ac6;
$custom-light: #7f88d8;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac6",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 198
  },
  "hsl": {
    "h": 224.082,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50328,
    "c": 0.17439,
    "h": 265.5
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#335AC6
secondary
#CDBB87
accent
#B946E2
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335AC6

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

Preview Lab → · Contrast checker → · Palette generator →

#335AC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva