#335CA2#335CA2

#335CA2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.122 H 260.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#335CA2
RGBrgb(51, 92, 162)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 69%, 64%)
CMYKcmyk(68.5%, 43.2%, 0%, 36.5%)
CIE-LABlab(39.52, 9.49, -42.15)
CIE-LCHlch(39.52, 43.20, 282.68°)
OKLaboklab(48.16% -0.0204 -0.1203)
OKLCHoklch(48.16% 0.122 260.4)
XYZxyz(11.7116, 10.9656, 35.6748)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA2 #A27933
analogous
#3394A2 #335CA2 #4233A2
triadic
#335CA2 #A2335C #5CA233
tetradic
#335CA2 #A23394 #A27933 #33A242
square
#335CA2 #A23394 #A27933 #33A242
split-complementary
#335CA2 #A24233 #94A233
monochromatic
#162745 #244273 #335CA2 #4C79C7 #7A9CD5

Accessibility & contrast

On white

6.58
#335CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA2#FFFFFF#000000##FFFFFF
##335CA21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#2958A1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ca2;
/* rgb */ color: rgb(51, 92, 162);
/* oklch */ color: oklch(48.2% 0.122 260.4);
Tailwind
colors: {
  custom: {
    50: '#7789be',
    500: '#335ca2',
    950: '#000000',
  },
}
SCSS
$custom: #335ca2;
$custom-light: #7789be;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca2",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 217.838,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48158,
    "c": 0.12205,
    "h": 260.4
  },
  "luminance": 0.10967
}

Semantic roles & 50–950 ramp

primary
#335CA2
secondary
#BEA273
accent
#A74CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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