#335BA3#335BA3

#335BA3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.125 H 261.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#335BA3
RGBrgb(51, 91, 163)
HSLhsl(219, 52%, 42%)
HSVhsv(219, 69%, 64%)
CMYKcmyk(68.7%, 44.2%, 0%, 36.1%)
CIE-LABlab(39.29, 10.51, -43.12)
CIE-LCHlch(39.29, 44.38, 283.69°)
OKLaboklab(48% -0.0192 -0.1232)
OKLCHoklch(48% 0.125 261.2)
XYZxyz(11.7148, 10.8291, 36.1161)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA3 #A37B33
analogous
#3393A3 #335BA3 #4333A3
triadic
#335BA3 #A3335B #5BA333
tetradic
#335BA3 #A33393 #A37B33 #33A343
square
#335BA3 #A33393 #A37B33 #33A343
split-complementary
#335BA3 #A34333 #93A333
monochromatic
#162746 #244174 #335BA3 #4C78C7 #7B9BD6

Accessibility & contrast

On white

6.63
#335BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA3#FFFFFF#000000##FFFFFF
##335BA31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A6
Deuteranopia (green-blind)
#2558A2
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba3;
/* rgb */ color: rgb(51, 91, 163);
/* oklch */ color: oklch(48.0% 0.125 261.2);
Tailwind
colors: {
  custom: {
    50: '#7888bf',
    500: '#335ba3',
    950: '#000000',
  },
}
SCSS
$custom: #335ba3;
$custom-light: #7888bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba3",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 163
  },
  "hsl": {
    "h": 218.571,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.12467,
    "h": 261.2
  },
  "luminance": 0.1083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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