#335FD4#335FD4

#335FD4 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.187 H 264.9°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#335FD4
RGBrgb(51, 95, 212)
HSLhsl(224, 65%, 52%)
HSVhsv(224, 76%, 83%)
CMYKcmyk(75.9%, 55.2%, 0%, 16.9%)
CIE-LABlab(43.71, 26.18, -64.58)
CIE-LCHlch(43.71, 69.68, 292.07°)
OKLaboklab(52.43% -0.0165 -0.1862)
OKLCHoklch(52.43% 0.187 264.9)
XYZxyz(17.3369, 13.6397, 63.9936)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FD4 #D4A833
analogous
#33B0D4 #335FD4 #5833D4
triadic
#335FD4 #D4335F #5FD433
tetradic
#335FD4 #D433B0 #D4A833 #33D458
square
#335FD4 #D433B0 #D4A833 #33D458
split-complementary
#335FD4 #D45833 #B0D433
monochromatic
#183274 #2347A7 #335FD4 #6687DF #98AEE9

Accessibility & contrast

On white

5.63
#335FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#335FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FD4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FD4#FFFFFF#000000##FFFFFF
##335FD41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #335fd4;
/* rgb */ color: rgb(51, 95, 212);
/* oklch */ color: oklch(52.4% 0.187 264.9);
Tailwind
colors: {
  custom: {
    50: '#828be2',
    500: '#335fd4',
    950: '#000000',
  },
}
SCSS
$custom: #335fd4;
$custom-light: #828be2;
$custom-dark: #000000;
JSON
{
  "hex": "#335fd4",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 223.602,
    "s": 65.182,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52425,
    "c": 0.18698,
    "h": 264.9
  },
  "luminance": 0.13642
}

Semantic roles & 50–950 ramp

primary
#335FD4
secondary
#D5C18E
accent
#BA40E8
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #335FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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