#335B94#335B94

#335B94 is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.0% C 0.103 H 257.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#335B94
RGBrgb(51, 91, 148)
HSLhsl(215, 49%, 39%)
HSVhsv(215, 66%, 58%)
CMYKcmyk(65.5%, 38.5%, 0%, 42%)
CIE-LABlab(38.42, 4.98, -35.53)
CIE-LCHlch(38.42, 35.87, 277.97°)
OKLaboklab(47.04% -0.0225 -0.1009)
OKLCHoklch(47.04% 0.103 257.4)
XYZxyz(10.4497, 10.3231, 29.4531)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B94 #946C33
analogous
#338C94 #335B94 #3C3394
triadic
#335B94 #94335B #5B9433
tetradic
#335B94 #94338C #946C33 #33943C
square
#335B94 #94338C #946C33 #33943C
split-complementary
#335B94 #943C33 #8C9433
monochromatic
#142339 #233F66 #335B94 #4577BF #7399CF

Accessibility & contrast

On white

6.85
#335B94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#335B94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B94
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B94#FFFFFF#000000##FFFFFF
##335B941.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425F96
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#006870
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335b94;
/* rgb */ color: rgb(51, 91, 148);
/* oklch */ color: oklch(47.0% 0.103 257.4);
Tailwind
colors: {
  custom: {
    50: '#7589b4',
    500: '#335b94',
    950: '#000000',
  },
}
SCSS
$custom: #335b94;
$custom-light: #7589b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335b94",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 148
  },
  "hsl": {
    "h": 215.258,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.10341,
    "h": 257.4
  },
  "luminance": 0.10324
}

Semantic roles & 50–950 ramp

primary
#335B94
secondary
#B7986C
accent
#A04FD8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B94

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

Preview Lab → · Contrast checker → · Palette generator →

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