#335BB2#335BB2

#335BB2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.146 H 263.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#335BB2
RGBrgb(51, 91, 178)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 70%)
CMYKcmyk(71.3%, 48.9%, 0%, 30.2%)
CIE-LABlab(40.24, 16.10, -50.46)
CIE-LCHlch(40.24, 52.97, 287.69°)
OKLaboklab(49.04% -0.0167 -0.1448)
OKLCHoklch(49.04% 0.146 263.4)
XYZxyz(13.1394, 11.3990, 43.6186)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB2 #B28A33
analogous
#339BB2 #335BB2 #4A33B2
triadic
#335BB2 #B2335B #5BB233
tetradic
#335BB2 #B2339B #B28A33 #33B24A
square
#335BB2 #B2339B #B28A33 #33B24A
split-complementary
#335BB2 #B24A33 #9BB233
monochromatic
#182A53 #254382 #335BB2 #547BCE #849FDC

Accessibility & contrast

On white

6.40
#335BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#335BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB2#FFFFFF#000000##FFFFFF
##335BB21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#0259B0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb2;
/* rgb */ color: rgb(51, 91, 178);
/* oklch */ color: oklch(49.0% 0.146 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b88ca',
    500: '#335bb2',
    950: '#000000',
  },
}
SCSS
$custom: #335bb2;
$custom-light: #7b88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb2",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 221.102,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49038,
    "c": 0.14575,
    "h": 263.4
  },
  "luminance": 0.114
}

Semantic roles & 50–950 ramp

primary
#335BB2
secondary
#C5AE7C
accent
#B049DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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