#335FA0#335FA0

#335FA0 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.7% C 0.116 H 258.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#335FA0
RGBrgb(51, 95, 160)
HSLhsl(216, 52%, 41%)
HSVhsv(216, 68%, 63%)
CMYKcmyk(68.1%, 40.6%, 0%, 37.3%)
CIE-LABlab(40.29, 6.82, -39.74)
CIE-LCHlch(40.29, 40.32, 279.73°)
OKLaboklab(48.71% -0.0238 -0.1132)
OKLCHoklch(48.71% 0.116 258.1)
XYZxyz(11.8003, 11.4251, 34.8343)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA0 #A07433
analogous
#3396A0 #335FA0 #3E33A0
triadic
#335FA0 #A0335F #5FA033
tetradic
#335FA0 #A03396 #A07433 #33A03E
square
#335FA0 #A03396 #A07433 #33A03E
split-complementary
#335FA0 #A03E33 #96A033
monochromatic
#152843 #244372 #335FA0 #4B7CC6 #799ED4

Accessibility & contrast

On white

6.39
#335FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335FA0
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA0#FFFFFF#000000##FFFFFF
##335FA01.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4164A3
Deuteranopia (green-blind)
#315A9F
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335fa0;
/* rgb */ color: rgb(51, 95, 160);
/* oklch */ color: oklch(48.7% 0.116 258.1);
Tailwind
colors: {
  custom: {
    50: '#778cbc',
    500: '#335fa0',
    950: '#000000',
  },
}
SCSS
$custom: #335fa0;
$custom-light: #778cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa0",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 160
  },
  "hsl": {
    "h": 215.78,
    "s": 51.659,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.1157,
    "h": 258.1
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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