#335BA9#335BA9

#335BA9 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.133 H 262.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#335BA9
RGBrgb(51, 91, 169)
HSLhsl(220, 54%, 43%)
HSVhsv(220, 70%, 66%)
CMYKcmyk(69.8%, 46.2%, 0%, 33.7%)
CIE-LABlab(39.66, 12.74, -46.08)
CIE-LCHlch(39.66, 47.81, 285.45°)
OKLaboklab(48.41% -0.0181 -0.1319)
OKLCHoklch(48.41% 0.133 262.2)
XYZxyz(12.2652, 11.0493, 39.0148)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA9 #A98133
analogous
#3396A9 #335BA9 #4633A9
triadic
#335BA9 #A9335B #5BA933
tetradic
#335BA9 #A93396 #A98133 #33A946
square
#335BA9 #A93396 #A98133 #33A946
split-complementary
#335BA9 #A94633 #96A933
monochromatic
#17284B #25427A #335BA9 #4F79CA #7E9DD8

Accessibility & contrast

On white

6.54
#335BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#335BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA9
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA9#FFFFFF#000000##FFFFFF
##335BA91.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AC
Deuteranopia (green-blind)
#1C58A7
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba9;
/* rgb */ color: rgb(51, 91, 169);
/* oklch */ color: oklch(48.4% 0.133 262.2);
Tailwind
colors: {
  custom: {
    50: '#7988c3',
    500: '#335ba9',
    950: '#000000',
  },
}
SCSS
$custom: #335ba9;
$custom-light: #7988c3;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba9",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 169
  },
  "hsl": {
    "h": 219.661,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48405,
    "c": 0.13314,
    "h": 262.2
  },
  "luminance": 0.11051
}

Semantic roles & 50–950 ramp

primary
#335BA9
secondary
#C1A877
accent
#AB4BDD
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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