#335E97#335E97

#335E97 is a mid, moderate cyan. Relative luminance 0.109; OKLCH L 47.9% C 0.104 H 256.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#335E97
RGBrgb(51, 94, 151)
HSLhsl(214, 50%, 40%)
HSVhsv(214, 66%, 59%)
CMYKcmyk(66.2%, 37.7%, 0%, 40.8%)
CIE-LABlab(39.48, 4.15, -35.64)
CIE-LCHlch(39.48, 35.88, 276.65°)
OKLaboklab(47.92% -0.025 -0.1012)
OKLCHoklch(47.92% 0.104 256.1)
XYZxyz(10.9518, 10.9425, 30.8071)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E97 #976C33
analogous
#339097 #335E97 #3A3397
triadic
#335E97 #97335E #5E9733
tetradic
#335E97 #973390 #976C33 #33973A
square
#335E97 #973390 #976C33 #33973A
split-complementary
#335E97 #973A33 #909733
monochromatic
#14253C #244269 #335E97 #477BC1 #749CD0

Accessibility & contrast

On white

6.59
#335E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E97
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E97#FFFFFF#000000##FFFFFF
##335E971.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456299
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#006B73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335e97;
/* rgb */ color: rgb(51, 94, 151);
/* oklch */ color: oklch(47.9% 0.104 256.1);
Tailwind
colors: {
  custom: {
    50: '#758bb6',
    500: '#335e97',
    950: '#000000',
  },
}
SCSS
$custom: #335e97;
$custom-light: #758bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#335e97",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 151
  },
  "hsl": {
    "h": 214.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47922,
    "c": 0.10425,
    "h": 256.1
  },
  "luminance": 0.10944
}

Semantic roles & 50–950 ramp

primary
#335E97
secondary
#B8986D
accent
#9E4FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335E97

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

Preview Lab → · Contrast checker → · Palette generator →

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