#335196#335196

#335196 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.9% C 0.118 H 264.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#335196
RGBrgb(51, 81, 150)
HSLhsl(222, 49%, 39%)
HSVhsv(222, 66%, 59%)
CMYKcmyk(66%, 46%, 0%, 41.2%)
CIE-LABlab(35.58, 12.23, -41.26)
CIE-LCHlch(35.58, 43.03, 286.51°)
OKLaboklab(44.88% -0.0114 -0.1179)
OKLCHoklch(44.88% 0.118 264.5)
XYZxyz(9.8108, 8.7898, 30.0278)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335196 #967833
analogous
#338396 #335196 #463396
triadic
#335196 #963351 #519633
tetradic
#335196 #963383 #967833 #339646
square
#335196 #963383 #967833 #339646
split-complementary
#335196 #964633 #839633
monochromatic
#14203B #233868 #335196 #466BC0 #7490D0

Accessibility & contrast

On white

7.61
#335196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335196
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335196#FFFFFF#000000##FFFFFF
##3351961.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305999
Deuteranopia (green-blind)
#1F4F95
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335196;
/* rgb */ color: rgb(51, 81, 150);
/* oklch */ color: oklch(44.9% 0.118 264.5);
Tailwind
colors: {
  custom: {
    50: '#7581b5',
    500: '#335196',
    950: '#000000',
  },
}
SCSS
$custom: #335196;
$custom-light: #7581b5;
$custom-dark: #000000;
JSON
{
  "hex": "#335196",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 150
  },
  "hsl": {
    "h": 221.818,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.11843,
    "h": 264.5
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#335196
secondary
#B8A16D
accent
#AF4FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335196

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

Preview Lab → · Contrast checker → · Palette generator →

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