#334ABA#334ABA

#334ABA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.2% C 0.178 H 269.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#334ABA
RGBrgb(51, 74, 186)
HSLhsl(230, 57%, 46%)
HSVhsv(230, 73%, 73%)
CMYKcmyk(72.6%, 60.2%, 0%, 27.1%)
CIE-LABlab(36.26, 30.17, -61.62)
CIE-LCHlch(36.26, 68.61, 296.09°)
OKLaboklab(46.22% -0.0023 -0.1779)
OKLCHoklch(46.22% 0.178 269.3)
XYZxyz(12.6739, 9.1452, 47.5421)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334ABA #BAA333
analogous
#338EBA #334ABA #6033BA
triadic
#334ABA #BA334A #4ABA33
tetradic
#334ABA #BA338E #BAA333 #33BA60
square
#334ABA #BA338E #BAA333 #33BA60
split-complementary
#334ABA #BA6033 #8EBA33
monochromatic
#19245A #26378A #334ABA #596DD1 #8997DF

Accessibility & contrast

On white

7.42
#334ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#334ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334ABA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334ABA#FFFFFF#000000##FFFFFF
##334ABA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#00667B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334aba;
/* rgb */ color: rgb(51, 74, 186);
/* oklch */ color: oklch(46.2% 0.178 269.3);
Tailwind
colors: {
  custom: {
    50: '#7d7cd0',
    500: '#334aba',
    950: '#000000',
  },
}
SCSS
$custom: #334aba;
$custom-light: #7d7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#334aba",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 229.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.17788,
    "h": 269.3
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#334ABA
secondary
#C9BC80
accent
#C648E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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