#335183#335183

#335183 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.090 H 260.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#335183
RGBrgb(51, 81, 131)
HSLhsl(218, 44%, 36%)
HSVhsv(218, 61%, 51%)
CMYKcmyk(61.1%, 38.2%, 0%, 48.6%)
CIE-LABlab(34.45, 5.28, -31.46)
CIE-LCHlch(34.45, 31.90, 279.53°)
OKLaboklab(43.65% -0.0155 -0.0891)
OKLCHoklch(43.65% 0.09 260.1)
XYZxyz(8.4030, 8.2266, 22.6134)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335183 #836533
analogous
#337983 #335183 #3D3383
triadic
#335183 #833351 #518333
tetradic
#335183 #833379 #836533 #33833D
square
#335183 #833379 #836533 #33833D
split-complementary
#335183 #833D33 #798333
monochromatic
#111B2B #223657 #335183 #446CAF #6B8DC5

Accessibility & contrast

On white

7.94
#335183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335183
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335183#FFFFFF#000000##FFFFFF
##3351831.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5585
Deuteranopia (green-blind)
#314E82
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335183;
/* rgb */ color: rgb(51, 81, 131);
/* oklch */ color: oklch(43.6% 0.090 260.1);
Tailwind
colors: {
  custom: {
    50: '#7281a7',
    500: '#335183',
    950: '#000000',
  },
}
SCSS
$custom: #335183;
$custom-light: #7281a7;
$custom-dark: #000000;
JSON
{
  "hex": "#335183",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 131
  },
  "hsl": {
    "h": 217.5,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.09049,
    "h": 260.1
  },
  "luminance": 0.08227
}

Semantic roles & 50–950 ramp

primary
#335183
secondary
#AD9265
accent
#A454D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335183

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

Preview Lab → · Contrast checker → · Palette generator →

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