#335BA2#335BA2

#335BA2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.123 H 261.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#335BA2
RGBrgb(51, 91, 162)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 69%, 64%)
CMYKcmyk(68.5%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.23, 10.13, -42.62)
CIE-LCHlch(39.23, 43.81, 283.38°)
OKLaboklab(47.93% -0.0194 -0.1217)
OKLCHoklch(47.93% 0.123 261)
XYZxyz(11.6256, 10.7935, 35.6461)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA2 #A27A33
analogous
#3393A2 #335BA2 #4233A2
triadic
#335BA2 #A2335B #5BA233
tetradic
#335BA2 #A23393 #A27A33 #33A242
square
#335BA2 #A23393 #A27A33 #33A242
split-complementary
#335BA2 #A24233 #93A233
monochromatic
#162745 #244173 #335BA2 #4C78C7 #7A9BD5

Accessibility & contrast

On white

6.65
#335BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#335BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA2#FFFFFF#000000##FFFFFF
##335BA21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#2658A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335ba2;
/* rgb */ color: rgb(51, 91, 162);
/* oklch */ color: oklch(47.9% 0.123 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788be',
    500: '#335ba2',
    950: '#000000',
  },
}
SCSS
$custom: #335ba2;
$custom-light: #7788be;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba2",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 218.378,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47932,
    "c": 0.12325,
    "h": 261
  },
  "luminance": 0.10795
}

Semantic roles & 50–950 ramp

primary
#335BA2
secondary
#BEA373
accent
#A84CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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