#335095#335095

#335095 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.6% C 0.118 H 264.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#335095
RGBrgb(51, 80, 149)
HSLhsl(222, 49%, 39%)
HSVhsv(222, 66%, 58%)
CMYKcmyk(65.8%, 46.3%, 0%, 41.6%)
CIE-LABlab(35.22, 12.52, -41.22)
CIE-LCHlch(35.22, 43.08, 286.90°)
OKLaboklab(44.59% -0.0106 -0.1178)
OKLCHoklch(44.59% 0.118 264.9)
XYZxyz(9.6568, 8.6102, 29.5810)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335095 #957833
analogous
#338195 #335095 #473395
triadic
#335095 #953350 #509533
tetradic
#335095 #953381 #957833 #339547
square
#335095 #953381 #957833 #339547
split-complementary
#335095 #954733 #819533
monochromatic
#141F3A #233867 #335095 #466AC0 #738ECF

Accessibility & contrast

On white

7.71
#335095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#335095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335095
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335095#FFFFFF#000000##FFFFFF
##3350951.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5898
Deuteranopia (green-blind)
#1E4F94
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335095;
/* rgb */ color: rgb(51, 80, 149);
/* oklch */ color: oklch(44.6% 0.118 264.9);
Tailwind
colors: {
  custom: {
    50: '#7580b4',
    500: '#335095',
    950: '#000000',
  },
}
SCSS
$custom: #335095;
$custom-light: #7580b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335095",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 149
  },
  "hsl": {
    "h": 222.245,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44588,
    "c": 0.11825,
    "h": 264.9
  },
  "luminance": 0.08611
}

Semantic roles & 50–950 ramp

primary
#335095
secondary
#B7A16C
accent
#B04FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335095

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

Preview Lab → · Contrast checker → · Palette generator →

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