#335FA6#335FA6

#335FA6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.124 H 259.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#335FA6
RGBrgb(51, 95, 166)
HSLhsl(217, 53%, 43%)
HSVhsv(217, 69%, 65%)
CMYKcmyk(69.3%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.64, 9.03, -42.74)
CIE-LCHlch(40.64, 43.69, 281.93°)
OKLaboklab(49.1% -0.0225 -0.122)
OKLCHoklch(49.1% 0.124 259.5)
XYZxyz(12.3379, 11.6401, 37.6655)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA6 #A67A33
analogous
#3399A6 #335FA6 #4033A6
triadic
#335FA6 #A6335F #5FA633
tetradic
#335FA6 #A63399 #A67A33 #33A640
square
#335FA6 #A63399 #A67A33 #33A640
split-complementary
#335FA6 #A64033 #99A633
monochromatic
#162948 #254477 #335FA6 #4E7DC9 #7C9FD7

Accessibility & contrast

On white

6.31
#335FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#335FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FA6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA6#FFFFFF#000000##FFFFFF
##335FA61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66A9
Deuteranopia (green-blind)
#2B5BA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335fa6;
/* rgb */ color: rgb(51, 95, 166);
/* oklch */ color: oklch(49.1% 0.124 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bc1',
    500: '#335fa6',
    950: '#000000',
  },
}
SCSS
$custom: #335fa6;
$custom-light: #788bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa6",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 217.043,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49098,
    "c": 0.1241,
    "h": 259.5
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#335FA6
secondary
#C0A375
accent
#A54BDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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