#335181#335181

#335181 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.088 H 259.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#335181
RGBrgb(51, 81, 129)
HSLhsl(217, 43%, 35%)
HSVhsv(217, 60%, 51%)
CMYKcmyk(60.5%, 37.2%, 0%, 49.4%)
CIE-LABlab(34.34, 4.56, -30.40)
CIE-LCHlch(34.34, 30.74, 278.54°)
OKLaboklab(43.52% -0.0161 -0.0861)
OKLCHoklch(43.52% 0.088 259.4)
XYZxyz(8.2687, 8.1729, 21.9064)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335181 #816333
analogous
#337881 #335181 #3C3381
triadic
#335181 #813351 #518133
tetradic
#335181 #813378 #816333 #33813C
square
#335181 #813378 #816333 #33813C
split-complementary
#335181 #813C33 #788133
monochromatic
#101A29 #223555 #335181 #446DAD #6A8DC4

Accessibility & contrast

On white

7.97
#335181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#335181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335181
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335181#FFFFFF#000000##FFFFFF
##3351811.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5583
Deuteranopia (green-blind)
#334D80
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335181;
/* rgb */ color: rgb(51, 81, 129);
/* oklch */ color: oklch(43.5% 0.088 259.4);
Tailwind
colors: {
  custom: {
    50: '#7281a6',
    500: '#335181',
    950: '#000000',
  },
}
SCSS
$custom: #335181;
$custom-light: #7281a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335181",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 216.923,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43524,
    "c": 0.08755,
    "h": 259.4
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#335181
secondary
#AC9064
accent
#A255D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335181

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

Preview Lab → · Contrast checker → · Palette generator →

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