#335D98#335D98

#335D98 is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.8% C 0.107 H 257.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#335D98
RGBrgb(51, 93, 152)
HSLhsl(215, 50%, 40%)
HSVhsv(215, 66%, 60%)
CMYKcmyk(66.4%, 38.8%, 0%, 40.4%)
CIE-LABlab(39.24, 5.16, -36.63)
CIE-LCHlch(39.24, 36.99, 278.02°)
OKLaboklab(47.75% -0.0237 -0.1041)
OKLCHoklch(47.75% 0.107 257.2)
XYZxyz(10.9451, 10.7984, 31.2072)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D98 #986E33
analogous
#338F98 #335D98 #3C3398
triadic
#335D98 #98335D #5D9833
tetradic
#335D98 #98338F #986E33 #33983C
square
#335D98 #98338F #986E33 #33983C
split-complementary
#335D98 #983C33 #8F9833
monochromatic
#14253C #24416A #335D98 #477AC1 #759BD1

Accessibility & contrast

On white

6.65
#335D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#335D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D98
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D98#FFFFFF#000000##FFFFFF
##335D981.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43629A
Deuteranopia (green-blind)
#345897
Tritanopia (blue-blind)
#006B73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335d98;
/* rgb */ color: rgb(51, 93, 152);
/* oklch */ color: oklch(47.8% 0.107 257.2);
Tailwind
colors: {
  custom: {
    50: '#758ab6',
    500: '#335d98',
    950: '#000000',
  },
}
SCSS
$custom: #335d98;
$custom-light: #758ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#335d98",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 152
  },
  "hsl": {
    "h": 215.05,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4775,
    "c": 0.10677,
    "h": 257.2
  },
  "luminance": 0.108
}

Semantic roles & 50–950 ramp

primary
#335D98
secondary
#B99A6E
accent
#A04FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335D98

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

Preview Lab → · Contrast checker → · Palette generator →

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