#335ABA#335ABA

#335ABA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.158 H 264.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#335ABA
RGBrgb(51, 90, 186)
HSLhsl(223, 57%, 46%)
HSVhsv(223, 73%, 73%)
CMYKcmyk(72.6%, 51.6%, 0%, 27.1%)
CIE-LABlab(40.51, 19.74, -54.73)
CIE-LCHlch(40.51, 58.18, 289.83°)
OKLaboklab(49.41% -0.0148 -0.1574)
OKLCHoklch(49.41% 0.158 264.6)
XYZxyz(13.8812, 11.5598, 47.9446)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ABA #BA9333
analogous
#339EBA #335ABA #5033BA
triadic
#335ABA #BA335A #5ABA33
tetradic
#335ABA #BA339E #BA9333 #33BA50
square
#335ABA #BA339E #BA9333 #33BA50
split-complementary
#335ABA #BA5033 #9EBA33
monochromatic
#192C5A #26438A #335ABA #597CD1 #89A2DF

Accessibility & contrast

On white

6.34
#335ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ABA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ABA#FFFFFF#000000##FFFFFF
##335ABA1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335aba;
/* rgb */ color: rgb(51, 90, 186);
/* oklch */ color: oklch(49.4% 0.158 264.6);
Tailwind
colors: {
  custom: {
    50: '#7c88cf',
    500: '#335aba',
    950: '#000000',
  },
}
SCSS
$custom: #335aba;
$custom-light: #7c88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#335aba",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 222.667,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.15807,
    "h": 264.6
  },
  "luminance": 0.11561
}

Semantic roles & 50–950 ramp

primary
#335ABA
secondary
#C9B480
accent
#B448E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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