#335ACA#335ACA

#335ACA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.180 H 265.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#335ACA
RGBrgb(51, 90, 202)
HSLhsl(225, 60%, 50%)
HSVhsv(225, 75%, 79%)
CMYKcmyk(74.8%, 55.4%, 0%, 20.8%)
CIE-LABlab(41.66, 25.70, -62.17)
CIE-LCHlch(41.66, 67.27, 292.46°)
OKLaboklab(50.64% -0.0135 -0.1792)
OKLCHoklch(50.64% 0.18 265.7)
XYZxyz(15.6783, 12.2787, 57.4094)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ACA #CAA333
analogous
#33A6CA #335ACA #5733CA
triadic
#335ACA #CA335A #5ACA33
tetradic
#335ACA #CA33A6 #CAA333 #33CA57
square
#335ACA #CA33A6 #CAA333 #33CA57
split-complementary
#335ACA #CA5733 #A6CA33
monochromatic
#1A2E68 #274499 #335ACA #6381D8 #94A8E4

Accessibility & contrast

On white

6.08
#335ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#335ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ACA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ACA#FFFFFF#000000##FFFFFF
##335ACA1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335aca;
/* rgb */ color: rgb(51, 90, 202);
/* oklch */ color: oklch(50.6% 0.180 265.7);
Tailwind
colors: {
  custom: {
    50: '#8088db',
    500: '#335aca',
    950: '#000000',
  },
}
SCSS
$custom: #335aca;
$custom-light: #8088db;
$custom-dark: #000000;
JSON
{
  "hex": "#335aca",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 224.503,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50643,
    "c": 0.17976,
    "h": 265.7
  },
  "luminance": 0.1228
}

Semantic roles & 50–950 ramp

primary
#335ACA
secondary
#CFBD8A
accent
#BA45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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