#335A95#335A95

#335A95 is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.9% C 0.106 H 258.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#335A95
RGBrgb(51, 90, 149)
HSLhsl(216, 49%, 39%)
HSVhsv(216, 66%, 58%)
CMYKcmyk(65.8%, 39.6%, 0%, 41.6%)
CIE-LABlab(38.17, 5.99, -36.51)
CIE-LCHlch(38.17, 37.00, 279.31°)
OKLaboklab(46.87% -0.0212 -0.1038)
OKLCHoklch(46.87% 0.106 258.5)
XYZxyz(10.4443, 10.1851, 29.8434)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A95 #956E33
analogous
#338B95 #335A95 #3D3395
triadic
#335A95 #95335A #5A9533
tetradic
#335A95 #95338B #956E33 #33953D
square
#335A95 #95338B #956E33 #33953D
split-complementary
#335A95 #953D33 #8B9533
monochromatic
#14233A #233E67 #335A95 #4676C0 #7398CF

Accessibility & contrast

On white

6.91
#335A95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#335A95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A95
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A95#FFFFFF#000000##FFFFFF
##335A951.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335a95;
/* rgb */ color: rgb(51, 90, 149);
/* oklch */ color: oklch(46.9% 0.106 258.5);
Tailwind
colors: {
  custom: {
    50: '#7588b4',
    500: '#335a95',
    950: '#000000',
  },
}
SCSS
$custom: #335a95;
$custom-light: #7588b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335a95",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 149
  },
  "hsl": {
    "h": 216.122,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46866,
    "c": 0.10597,
    "h": 258.5
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#335A95
secondary
#B79A6C
accent
#A24FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A95

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

Preview Lab → · Contrast checker → · Palette generator →

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