#335BF0#335BF0

#335BF0 is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.0% C 0.228 H 266.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#335BF0
RGBrgb(51, 91, 240)
HSLhsl(227, 86%, 57%)
HSVhsv(227, 79%, 94%)
CMYKcmyk(78.8%, 62.1%, 0%, 5.9%)
CIE-LABlab(44.91, 38.92, -78.50)
CIE-LCHlch(44.91, 87.62, 296.37°)
OKLaboklab(54% -0.0133 -0.2272)
OKLCHoklch(54% 0.228 266.6)
XYZxyz(20.8290, 14.4748, 84.1173)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BF0 #F0C833
analogous
#33B9F0 #335BF0 #6A33F0
triadic
#335BF0 #F0335B #5BF033
tetradic
#335BF0 #F033B9 #F0C833 #33F06A
square
#335BF0 #F033B9 #F0C833 #33F06A
split-complementary
#335BF0 #F06A33 #B9F033
monochromatic
#0C2A9D #103AD6 #335BF0 #6C89F4 #A5B7F8

Accessibility & contrast

On white

5.39
#335BF0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#335BF0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BF0
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BF0#FFFFFF#000000##FFFFFF
##335BF01.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F5
Deuteranopia (green-blind)
#0062ED
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #335bf0;
/* rgb */ color: rgb(51, 91, 240);
/* oklch */ color: oklch(54.0% 0.228 266.6);
Tailwind
colors: {
  custom: {
    50: '#8889f6',
    500: '#335bf0',
    950: '#000000',
  },
}
SCSS
$custom: #335bf0;
$custom-light: #8889f6;
$custom-dark: #000000;
JSON
{
  "hex": "#335bf0",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 240
  },
  "hsl": {
    "h": 227.302,
    "s": 86.301,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54001,
    "c": 0.22756,
    "h": 266.6
  },
  "luminance": 0.14477
}

Semantic roles & 50–950 ramp

primary
#335BF0
secondary
#E6D699
accent
#D02BFD
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #335BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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