#335195#335195

#335195 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.8% C 0.117 H 264.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#335195
RGBrgb(51, 81, 149)
HSLhsl(222, 49%, 39%)
HSVhsv(222, 66%, 58%)
CMYKcmyk(65.8%, 45.6%, 0%, 41.6%)
CIE-LABlab(35.51, 11.86, -40.75)
CIE-LCHlch(35.51, 42.44, 286.23°)
OKLaboklab(44.81% -0.0116 -0.1164)
OKLCHoklch(44.81% 0.117 264.3)
XYZxyz(9.7306, 8.7577, 29.6055)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335195 #957733
analogous
#338295 #335195 #463395
triadic
#335195 #953351 #519533
tetradic
#335195 #953382 #957733 #339546
square
#335195 #953382 #957733 #339546
split-complementary
#335195 #954633 #829533
monochromatic
#141F3A #233867 #335195 #466BC0 #738FCF

Accessibility & contrast

On white

7.63
#335195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335195
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335195#FFFFFF#000000##FFFFFF
##3351951.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305898
Deuteranopia (green-blind)
#204F94
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335195;
/* rgb */ color: rgb(51, 81, 149);
/* oklch */ color: oklch(44.8% 0.117 264.3);
Tailwind
colors: {
  custom: {
    50: '#7581b4',
    500: '#335195',
    950: '#000000',
  },
}
SCSS
$custom: #335195;
$custom-light: #7581b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335195",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 149
  },
  "hsl": {
    "h": 221.633,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.11698,
    "h": 264.3
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335195

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

Preview Lab → · Contrast checker → · Palette generator →

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