#335BAF#335BAF

#335BAF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.142 H 263.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#335BAF
RGBrgb(51, 91, 175)
HSLhsl(221, 55%, 44%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(70.9%, 48%, 0%, 31.4%)
CIE-LABlab(40.05, 14.98, -49.01)
CIE-LCHlch(40.05, 51.25, 286.99°)
OKLaboklab(48.82% -0.0171 -0.1405)
OKLCHoklch(48.82% 0.142 263.1)
XYZxyz(12.8414, 11.2798, 42.0496)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BAF #AF8733
analogous
#3399AF #335BAF #4933AF
triadic
#335BAF #AF335B #5BAF33
tetradic
#335BAF #AF3399 #AF8733 #33AF49
square
#335BAF #AF3399 #AF8733 #33AF49
split-complementary
#335BAF #AF4933 #99AF33
monochromatic
#172A50 #254280 #335BAF #527ACD #829EDB

Accessibility & contrast

On white

6.45
#335BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BAF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BAF#FFFFFF#000000##FFFFFF
##335BAF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B2
Deuteranopia (green-blind)
#0E59AD
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335baf;
/* rgb */ color: rgb(51, 91, 175);
/* oklch */ color: oklch(48.8% 0.142 263.1);
Tailwind
colors: {
  custom: {
    50: '#7a88c7',
    500: '#335baf',
    950: '#000000',
  },
}
SCSS
$custom: #335baf;
$custom-light: #7a88c7;
$custom-dark: #000000;
JSON
{
  "hex": "#335baf",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 220.645,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48824,
    "c": 0.14157,
    "h": 263.1
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#335BAF
secondary
#C4AC7A
accent
#AE4ADE
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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