#335F91#335F91

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

Color values

HEX#335F91
RGBrgb(51, 95, 145)
HSLhsl(212, 48%, 38%)
HSVhsv(212, 65%, 57%)
CMYKcmyk(64.8%, 34.5%, 0%, 43.1%)
CIE-LABlab(39.46, 1.34, -32.06)
CIE-LCHlch(39.46, 32.09, 272.40°)
OKLaboklab(47.8% -0.0277 -0.0907)
OKLCHoklch(47.8% 0.095 253)
XYZxyz(10.5664, 10.9315, 28.3357)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F91 #916533
analogous
#338E91 #335F91 #363391
triadic
#335F91 #91335F #5F9133
tetradic
#335F91 #91338E #916533 #339136
square
#335F91 #91338E #916533 #339136
split-complementary
#335F91 #913633 #8E9133
monochromatic
#132436 #234164 #335F91 #447DBD #719CCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335F91#FFFFFF#000000##FFFFFF
##335F911.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)
#496293
Deuteranopia (green-blind)
#3D5990
Tritanopia (blue-blind)
#006B71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335f91;
/* rgb */ color: rgb(51, 95, 145);
/* oklch */ color: oklch(47.8% 0.095 253.0);
Tailwind
colors: {
  custom: {
    50: '#748cb1',
    500: '#335f91',
    950: '#000000',
  },
}
SCSS
$custom: #335f91;
$custom-light: #748cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#335f91",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 145
  },
  "hsl": {
    "h": 211.915,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.09489,
    "h": 253
  },
  "luminance": 0.10933
}

Semantic roles & 50–950 ramp

primary
#335F91
secondary
#B5926B
accent
#9850D8
background
#F7F8FA
surface
#EDF0F5
border
#C8CBCF
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #335F91

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

Preview Lab → · Contrast checker → · Palette generator →

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