#335994#335994

#335994 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.6% C 0.106 H 258.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#335994
RGBrgb(51, 89, 148)
HSLhsl(216, 49%, 39%)
HSVhsv(216, 66%, 58%)
CMYKcmyk(65.5%, 39.9%, 0%, 42%)
CIE-LABlab(37.82, 6.26, -36.48)
CIE-LCHlch(37.82, 37.01, 279.75°)
OKLaboklab(46.57% -0.0203 -0.1037)
OKLCHoklch(46.57% 0.106 258.9)
XYZxyz(10.2810, 9.9857, 29.3969)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335994 #946E33
analogous
#338A94 #335994 #3E3394
triadic
#335994 #943359 #599433
tetradic
#335994 #94338A #946E33 #33943E
square
#335994 #94338A #946E33 #33943E
split-complementary
#335994 #943E33 #8A9433
monochromatic
#142239 #233E66 #335994 #4575BF #7397CF

Accessibility & contrast

On white

7.01
#335994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#335994 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335994
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335994#FFFFFF#000000##FFFFFF
##3359941.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5E96
Deuteranopia (green-blind)
#315593
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335994;
/* rgb */ color: rgb(51, 89, 148);
/* oklch */ color: oklch(46.6% 0.106 258.9);
Tailwind
colors: {
  custom: {
    50: '#7587b4',
    500: '#335994',
    950: '#000000',
  },
}
SCSS
$custom: #335994;
$custom-light: #7587b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335994",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 148
  },
  "hsl": {
    "h": 216.495,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46571,
    "c": 0.10572,
    "h": 258.9
  },
  "luminance": 0.09987
}

Semantic roles & 50–950 ramp

primary
#335994
secondary
#B7996C
accent
#A34FD8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335994

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

Preview Lab → · Contrast checker → · Palette generator →

#335994 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva