#335184#335184

#335184 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.7% C 0.092 H 260.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#335184
RGBrgb(51, 81, 132)
HSLhsl(218, 44%, 36%)
HSVhsv(218, 61%, 52%)
CMYKcmyk(61.4%, 38.6%, 0%, 48.2%)
CIE-LABlab(34.51, 5.64, -31.98)
CIE-LCHlch(34.51, 32.48, 280.01°)
OKLaboklab(43.71% -0.0153 -0.0907)
OKLCHoklch(43.71% 0.092 260.4)
XYZxyz(8.4711, 8.2539, 22.9721)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335184 #846633
analogous
#337984 #335184 #3D3384
triadic
#335184 #843351 #518433
tetradic
#335184 #843379 #846633 #33843D
square
#335184 #843379 #846633 #33843D
split-complementary
#335184 #843D33 #798433
monochromatic
#111B2C #223658 #335184 #446CB0 #6B8DC6

Accessibility & contrast

On white

7.92
#335184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335184
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335184#FFFFFF#000000##FFFFFF
##3351841.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5586
Deuteranopia (green-blind)
#314E83
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335184;
/* rgb */ color: rgb(51, 81, 132);
/* oklch */ color: oklch(43.7% 0.092 260.4);
Tailwind
colors: {
  custom: {
    50: '#7281a8',
    500: '#335184',
    950: '#000000',
  },
}
SCSS
$custom: #335184;
$custom-light: #7281a8;
$custom-dark: #000000;
JSON
{
  "hex": "#335184",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 132
  },
  "hsl": {
    "h": 217.778,
    "s": 44.262,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43706,
    "c": 0.09197,
    "h": 260.4
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#335184
secondary
#AE9365
accent
#A554D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335184

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

Preview Lab → · Contrast checker → · Palette generator →

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