#335AAF#335AAF

#335AAF is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.6% C 0.143 H 263.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#335AAF
RGBrgb(51, 90, 175)
HSLhsl(221, 55%, 44%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(70.9%, 48.6%, 0%, 31.4%)
CIE-LABlab(39.77, 15.63, -49.47)
CIE-LCHlch(39.77, 51.88, 287.54°)
OKLaboklab(48.61% -0.0162 -0.1419)
OKLCHoklch(48.61% 0.143 263.5)
XYZxyz(12.7565, 11.1100, 42.0213)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AAF #AF8833
analogous
#3398AF #335AAF #4A33AF
triadic
#335AAF #AF335A #5AAF33
tetradic
#335AAF #AF3398 #AF8833 #33AF4A
square
#335AAF #AF3398 #AF8833 #33AF4A
split-complementary
#335AAF #AF4A33 #98AF33
monochromatic
#172950 #254280 #335AAF #5279CD #829EDB

Accessibility & contrast

On white

6.52
#335AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AAF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AAF#FFFFFF#000000##FFFFFF
##335AAF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#0858AD
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335aaf;
/* rgb */ color: rgb(51, 90, 175);
/* oklch */ color: oklch(48.6% 0.143 263.5);
Tailwind
colors: {
  custom: {
    50: '#7a88c7',
    500: '#335aaf',
    950: '#000000',
  },
}
SCSS
$custom: #335aaf;
$custom-light: #7a88c7;
$custom-dark: #000000;
JSON
{
  "hex": "#335aaf",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 221.129,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48608,
    "c": 0.1428,
    "h": 263.5
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#335AAF
secondary
#C4AD7A
accent
#AF4ADE
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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