#335E9F#335E9F

#335E9F is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.4% C 0.115 H 258.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#335E9F
RGBrgb(51, 94, 159)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.9%, 40.9%, 0%, 37.6%)
CIE-LABlab(39.93, 7.09, -39.71)
CIE-LCHlch(39.93, 40.33, 280.12°)
OKLaboklab(48.42% -0.023 -0.1131)
OKLCHoklch(48.42% 0.115 258.5)
XYZxyz(11.6237, 11.2113, 34.3456)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E9F #9F7433
analogous
#33949F #335E9F #3E339F
triadic
#335E9F #9F335E #5E9F33
tetradic
#335E9F #9F3394 #9F7433 #339F3E
square
#335E9F #9F3394 #9F7433 #339F3E
split-complementary
#335E9F #9F3E33 #949F33
monochromatic
#152742 #244371 #335E9F #4A7BC5 #799DD4

Accessibility & contrast

On white

6.48
#335E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E9F
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E9F#FFFFFF#000000##FFFFFF
##335E9F1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4064A2
Deuteranopia (green-blind)
#30599E
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335e9f;
/* rgb */ color: rgb(51, 94, 159);
/* oklch */ color: oklch(48.4% 0.115 258.5);
Tailwind
colors: {
  custom: {
    50: '#778bbc',
    500: '#335e9f',
    950: '#000000',
  },
}
SCSS
$custom: #335e9f;
$custom-light: #778bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#335e9f",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 159
  },
  "hsl": {
    "h": 216.111,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48419,
    "c": 0.11545,
    "h": 258.5
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

primary
#335E9F
secondary
#BC9F71
accent
#A24DDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #335E9F

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

Preview Lab → · Contrast checker → · Palette generator →

#335E9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva