#335E8A#335E8A

#335E8A is a mid, moderate cyan. Relative luminance 0.105; OKLCH L 47.2% C 0.086 H 250.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#335E8A
RGBrgb(51, 94, 138)
HSLhsl(210, 46%, 37%)
HSVhsv(210, 63%, 54%)
CMYKcmyk(63%, 31.9%, 0%, 45.9%)
CIE-LABlab(38.80, -0.53, -28.88)
CIE-LCHlch(38.80, 28.88, 268.95°)
OKLaboklab(47.16% -0.0287 -0.0815)
OKLCHoklch(47.16% 0.086 250.6)
XYZxyz(9.9537, 10.5433, 25.5503)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E8A #8A5F33
analogous
#338A8A #335E8A #34338A
triadic
#335E8A #8A335E #5E8A33
tetradic
#335E8A #8A338A #8A5F33 #338A34
square
#335E8A #8A338A #8A5F33 #338A34
split-complementary
#335E8A #8A3433 #8A8A33
monochromatic
#122131 #22405D #335E8A #447CB7 #6E9BC9

Accessibility & contrast

On white

6.76
#335E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#335E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E8A
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E8A#FFFFFF#000000##FFFFFF
##335E8A1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608C
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#00686E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335e8a;
/* rgb */ color: rgb(51, 94, 138);
/* oklch */ color: oklch(47.2% 0.086 250.6);
Tailwind
colors: {
  custom: {
    50: '#738bac',
    500: '#335e8a',
    950: '#000000',
  },
}
SCSS
$custom: #335e8a;
$custom-light: #738bac;
$custom-dark: #000000;
JSON
{
  "hex": "#335e8a",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 138
  },
  "hsl": {
    "h": 210.345,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.0864,
    "h": 250.6
  },
  "luminance": 0.10544
}

Semantic roles & 50–950 ramp

primary
#335E8A
secondary
#B18D67
accent
#9552D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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