#335E98#335E98

#335E98 is a mid, moderate cyan. Relative luminance 0.110; OKLCH L 48.0% C 0.106 H 256.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#335E98
RGBrgb(51, 94, 152)
HSLhsl(214, 50%, 40%)
HSVhsv(214, 66%, 60%)
CMYKcmyk(66.4%, 38.2%, 0%, 40.4%)
CIE-LABlab(39.54, 4.52, -36.15)
CIE-LCHlch(39.54, 36.43, 277.12°)
OKLaboklab(47.98% -0.0247 -0.1027)
OKLCHoklch(47.98% 0.106 256.5)
XYZxyz(11.0334, 10.9751, 31.2366)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E98 #986D33
analogous
#339198 #335E98 #3A3398
triadic
#335E98 #98335E #5E9833
tetradic
#335E98 #983391 #986D33 #33983A
square
#335E98 #983391 #986D33 #33983A
split-complementary
#335E98 #983A33 #919833
monochromatic
#14253C #24426A #335E98 #477BC1 #759CD1

Accessibility & contrast

On white

6.57
#335E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#335E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E98
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E98#FFFFFF#000000##FFFFFF
##335E981.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44629A
Deuteranopia (green-blind)
#365997
Tritanopia (blue-blind)
#006B73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335e98;
/* rgb */ color: rgb(51, 94, 152);
/* oklch */ color: oklch(48.0% 0.106 256.5);
Tailwind
colors: {
  custom: {
    50: '#758bb6',
    500: '#335e98',
    950: '#000000',
  },
}
SCSS
$custom: #335e98;
$custom-light: #758bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#335e98",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 152
  },
  "hsl": {
    "h": 214.455,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.10565,
    "h": 256.5
  },
  "luminance": 0.10976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335E98

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

Preview Lab → · Contrast checker → · Palette generator →

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