#335AA3#335AA3

#335AA3 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.126 H 261.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#335AA3
RGBrgb(51, 90, 163)
HSLhsl(219, 52%, 42%)
HSVhsv(219, 69%, 64%)
CMYKcmyk(68.7%, 44.8%, 0%, 36.1%)
CIE-LABlab(39.00, 11.16, -43.58)
CIE-LCHlch(39.00, 44.99, 284.36°)
OKLaboklab(47.78% -0.0182 -0.1246)
OKLCHoklch(47.78% 0.126 261.7)
XYZxyz(11.6299, 10.6593, 36.0878)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA3 #A37C33
analogous
#3392A3 #335AA3 #4433A3
triadic
#335AA3 #A3335A #5AA333
tetradic
#335AA3 #A33392 #A37C33 #33A344
square
#335AA3 #A33392 #A37C33 #33A344
split-complementary
#335AA3 #A34433 #92A333
monochromatic
#162746 #244074 #335AA3 #4C77C7 #7B9AD6

Accessibility & contrast

On white

6.70
#335AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#335AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA3
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA3#FFFFFF#000000##FFFFFF
##335AA31.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A6
Deuteranopia (green-blind)
#2357A2
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa3;
/* rgb */ color: rgb(51, 90, 163);
/* oklch */ color: oklch(47.8% 0.126 261.7);
Tailwind
colors: {
  custom: {
    50: '#7888bf',
    500: '#335aa3',
    950: '#000000',
  },
}
SCSS
$custom: #335aa3;
$custom-light: #7888bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa3",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 163
  },
  "hsl": {
    "h": 219.107,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47775,
    "c": 0.12589,
    "h": 261.7
  },
  "luminance": 0.1066
}

Semantic roles & 50–950 ramp

primary
#335AA3
secondary
#BEA473
accent
#AA4CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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