#335FA1#335FA1

#335FA1 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 48.8% C 0.117 H 258.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#335FA1
RGBrgb(51, 95, 161)
HSLhsl(216, 52%, 42%)
HSVhsv(216, 68%, 63%)
CMYKcmyk(68.3%, 41%, 0%, 36.9%)
CIE-LABlab(40.34, 7.18, -40.24)
CIE-LCHlch(40.34, 40.88, 280.12°)
OKLaboklab(48.78% -0.0236 -0.1147)
OKLCHoklch(48.78% 0.117 258.4)
XYZxyz(11.8882, 11.4602, 35.2968)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA1 #A17533
analogous
#3396A1 #335FA1 #3E33A1
triadic
#335FA1 #A1335F #5FA133
tetradic
#335FA1 #A13396 #A17533 #33A13E
square
#335FA1 #A13396 #A17533 #33A13E
split-complementary
#335FA1 #A13E33 #96A133
monochromatic
#162844 #244473 #335FA1 #4B7CC6 #7A9ED5

Accessibility & contrast

On white

6.38
#335FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#335FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FA1
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA1#FFFFFF#000000##FFFFFF
##335FA11.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A4
Deuteranopia (green-blind)
#305AA0
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335fa1;
/* rgb */ color: rgb(51, 95, 161);
/* oklch */ color: oklch(48.8% 0.117 258.4);
Tailwind
colors: {
  custom: {
    50: '#778cbd',
    500: '#335fa1',
    950: '#000000',
  },
}
SCSS
$custom: #335fa1;
$custom-light: #778cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa1",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 216,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48776,
    "c": 0.11709,
    "h": 258.4
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#335FA1
secondary
#BD9F72
accent
#A24CDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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