#335E9B#335E9B

#335E9B is a mid, moderate blue. Relative luminance 0.111; OKLCH L 48.2% C 0.110 H 257.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#335E9B
RGBrgb(51, 94, 155)
HSLhsl(215, 50%, 40%)
HSVhsv(215, 67%, 61%)
CMYKcmyk(67.1%, 39.4%, 0%, 39.2%)
CIE-LABlab(39.71, 5.62, -37.68)
CIE-LCHlch(39.71, 38.10, 278.48°)
OKLaboklab(48.17% -0.024 -0.1072)
OKLCHoklch(48.17% 0.11 257.4)
XYZxyz(11.2822, 11.0747, 32.5470)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E9B #9B7033
analogous
#33929B #335E9B #3C339B
triadic
#335E9B #9B335E #5E9B33
tetradic
#335E9B #9B3392 #9B7033 #339B3C
square
#335E9B #9B3392 #9B7033 #339B3C
split-complementary
#335E9B #9B3C33 #929B33
monochromatic
#15263F #24426D #335E9B #487BC3 #769CD2

Accessibility & contrast

On white

6.53
#335E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E9B
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E9B#FFFFFF#000000##FFFFFF
##335E9B1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43639D
Deuteranopia (green-blind)
#34599A
Tritanopia (blue-blind)
#006C75
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335e9b;
/* rgb */ color: rgb(51, 94, 155);
/* oklch */ color: oklch(48.2% 0.110 257.4);
Tailwind
colors: {
  custom: {
    50: '#768bb9',
    500: '#335e9b',
    950: '#000000',
  },
}
SCSS
$custom: #335e9b;
$custom-light: #768bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#335e9b",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 155
  },
  "hsl": {
    "h": 215.192,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48168,
    "c": 0.10985,
    "h": 257.4
  },
  "luminance": 0.11076
}

Semantic roles & 50–950 ramp

primary
#335E9B
secondary
#BA9B6F
accent
#A04EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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