#335294#335294

#335294 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 45.0% C 0.114 H 263.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#335294
RGBrgb(51, 82, 148)
HSLhsl(221, 49%, 39%)
HSVhsv(221, 66%, 58%)
CMYKcmyk(65.5%, 44.6%, 0%, 42%)
CIE-LABlab(35.74, 10.83, -39.78)
CIE-LCHlch(35.74, 41.23, 285.24°)
OKLaboklab(44.97% -0.0129 -0.1135)
OKLCHoklch(44.97% 0.114 263.5)
XYZxyz(9.7260, 8.8756, 29.2118)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335294 #947533
analogous
#338394 #335294 #453394
triadic
#335294 #943352 #529433
tetradic
#335294 #943383 #947533 #339445
square
#335294 #943383 #947533 #339445
split-complementary
#335294 #944533 #839433
monochromatic
#142039 #233966 #335294 #456CBF #7390CF

Accessibility & contrast

On white

7.57
#335294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#335294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335294
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335294#FFFFFF#000000##FFFFFF
##3352941.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335997
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335294;
/* rgb */ color: rgb(51, 82, 148);
/* oklch */ color: oklch(45.0% 0.114 263.5);
Tailwind
colors: {
  custom: {
    50: '#7582b4',
    500: '#335294',
    950: '#000000',
  },
}
SCSS
$custom: #335294;
$custom-light: #7582b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335294",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 148
  },
  "hsl": {
    "h": 220.825,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44968,
    "c": 0.11425,
    "h": 263.5
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#335294
secondary
#B79F6C
accent
#AD4FD8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335294

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

Preview Lab → · Contrast checker → · Palette generator →

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