#335A94#335A94

#335A94 is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.8% C 0.105 H 258.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#335A94
RGBrgb(51, 90, 148)
HSLhsl(216, 49%, 39%)
HSVhsv(216, 66%, 58%)
CMYKcmyk(65.5%, 39.2%, 0%, 42%)
CIE-LABlab(38.12, 5.62, -36.00)
CIE-LCHlch(38.12, 36.44, 278.87°)
OKLaboklab(46.8% -0.0214 -0.1023)
OKLCHoklch(46.8% 0.105 258.2)
XYZxyz(10.3648, 10.1533, 29.4248)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A94 #946D33
analogous
#338B94 #335A94 #3C3394
triadic
#335A94 #94335A #5A9433
tetradic
#335A94 #94338B #946D33 #33943C
square
#335A94 #94338B #946D33 #33943C
split-complementary
#335A94 #943C33 #8B9433
monochromatic
#142339 #233E66 #335A94 #4576BF #7398CF

Accessibility & contrast

On white

6.93
#335A94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#335A94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A94
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A94#FFFFFF#000000##FFFFFF
##335A941.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405F96
Deuteranopia (green-blind)
#335693
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335a94;
/* rgb */ color: rgb(51, 90, 148);
/* oklch */ color: oklch(46.8% 0.105 258.2);
Tailwind
colors: {
  custom: {
    50: '#7588b4',
    500: '#335a94',
    950: '#000000',
  },
}
SCSS
$custom: #335a94;
$custom-light: #7588b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335a94",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 148
  },
  "hsl": {
    "h": 215.876,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46803,
    "c": 0.10455,
    "h": 258.2
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#335A94
secondary
#B7996C
accent
#A14FD8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A94

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

Preview Lab → · Contrast checker → · Palette generator →

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