#335BA1#335BA1

#335BA1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.122 H 260.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#335BA1
RGBrgb(51, 91, 161)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 68%, 63%)
CMYKcmyk(68.3%, 43.5%, 0%, 36.9%)
CIE-LABlab(39.17, 9.76, -42.12)
CIE-LCHlch(39.17, 43.23, 283.05°)
OKLaboklab(47.87% -0.0196 -0.1203)
OKLCHoklch(47.87% 0.122 260.8)
XYZxyz(11.5371, 10.7580, 35.1798)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA1 #A17933
analogous
#3392A1 #335BA1 #4233A1
triadic
#335BA1 #A1335B #5BA133
tetradic
#335BA1 #A13392 #A17933 #33A142
square
#335BA1 #A13392 #A17933 #33A142
split-complementary
#335BA1 #A14233 #92A133
monochromatic
#162644 #244173 #335BA1 #4B78C6 #7A9BD5

Accessibility & contrast

On white

6.66
#335BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#335BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA1
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA1#FFFFFF#000000##FFFFFF
##335BA11.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335ba1;
/* rgb */ color: rgb(51, 91, 161);
/* oklch */ color: oklch(47.9% 0.122 260.8);
Tailwind
colors: {
  custom: {
    50: '#7788bd',
    500: '#335ba1',
    950: '#000000',
  },
}
SCSS
$custom: #335ba1;
$custom-light: #7788bd;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba1",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 218.182,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47866,
    "c": 0.12184,
    "h": 260.8
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#335BA1
secondary
#BDA272
accent
#A74CDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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