#335FCF#335FCF

#335FCF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.0% C 0.180 H 264.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#335FCF
RGBrgb(51, 95, 207)
HSLhsl(223, 62%, 51%)
HSVhsv(223, 75%, 81%)
CMYKcmyk(75.4%, 54.1%, 0%, 18.8%)
CIE-LABlab(43.35, 24.33, -62.30)
CIE-LCHlch(43.35, 66.88, 291.33°)
OKLaboklab(52.04% -0.0168 -0.1796)
OKLCHoklch(52.04% 0.18 264.6)
XYZxyz(16.7159, 13.3914, 60.7232)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FCF #CFA333
analogous
#33ADCF #335FCF #5533CF
triadic
#335FCF #CF335F #5FCF33
tetradic
#335FCF #CF33AD #CFA333 #33CF55
square
#335FCF #CF33AD #CFA333 #33CF55
split-complementary
#335FCF #CF5533 #ADCF33
monochromatic
#1A326E #25489F #335FCF #6586DB #96ADE6

Accessibility & contrast

On white

5.71
#335FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#335FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FCF
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FCF#FFFFFF#000000##FFFFFF
##335FCF1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#0060CD
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #335fcf;
/* rgb */ color: rgb(51, 95, 207);
/* oklch */ color: oklch(52.0% 0.180 264.6);
Tailwind
colors: {
  custom: {
    50: '#818bde',
    500: '#335fcf',
    950: '#000000',
  },
}
SCSS
$custom: #335fcf;
$custom-light: #818bde;
$custom-dark: #000000;
JSON
{
  "hex": "#335fcf",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 223.077,
    "s": 61.905,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.18035,
    "h": 264.6
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

primary
#335FCF
secondary
#D2BE8C
accent
#B743E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #335FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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