#334AC2#334AC2

#334AC2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.188 H 269.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#334AC2
RGBrgb(51, 74, 194)
HSLhsl(230, 58%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.7%, 61.9%, 0%, 23.9%)
CIE-LABlab(36.92, 33.08, -65.24)
CIE-LCHlch(36.92, 73.14, 296.89°)
OKLaboklab(46.91% -0.0024 -0.1885)
OKLCHoklch(46.91% 0.188 269.3)
XYZxyz(13.5483, 9.4950, 52.1472)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AC2 #C2AB33
analogous
#3391C2 #334AC2 #6433C2
triadic
#334AC2 #C2334A #4AC233
tetradic
#334AC2 #C23391 #C2AB33 #33C264
square
#334AC2 #C23391 #C2AB33 #33C264
split-complementary
#334AC2 #C26433 #91C233
monochromatic
#1A2561 #263892 #334AC2 #5E71D5 #8E9BE1

Accessibility & contrast

On white

7.24
#334AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AC2
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AC2#FFFFFF#000000##FFFFFF
##334AC21.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334ac2;
/* rgb */ color: rgb(51, 74, 194);
/* oklch */ color: oklch(46.9% 0.188 269.3);
Tailwind
colors: {
  custom: {
    50: '#7f7cd5',
    500: '#334ac2',
    950: '#000000',
  },
}
SCSS
$custom: #334ac2;
$custom-light: #7f7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334ac2",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 230.35,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46912,
    "c": 0.18849,
    "h": 269.3
  },
  "luminance": 0.09496
}

Semantic roles & 50–950 ramp

primary
#334AC2
secondary
#CCC085
accent
#C946E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #334AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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