#334AC8#334AC8

#334AC8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.4% C 0.196 H 269.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#334AC8
RGBrgb(51, 74, 200)
HSLhsl(231, 59%, 49%)
HSVhsv(231, 75%, 78%)
CMYKcmyk(74.5%, 63%, 0%, 21.6%)
CIE-LABlab(37.43, 35.25, -67.90)
CIE-LCHlch(37.43, 76.51, 297.43°)
OKLaboklab(47.44% -0.0026 -0.1963)
OKLCHoklch(47.44% 0.196 269.3)
XYZxyz(14.2358, 9.7700, 55.7679)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AC8 #C8B133
analogous
#3395C8 #334AC8 #6633C8
triadic
#334AC8 #C8334A #4AC833
tetradic
#334AC8 #C83395 #C8B133 #33C866
square
#334AC8 #C83395 #C8B133 #33C866
split-complementary
#334AC8 #C86633 #95C833
monochromatic
#1A2666 #273897 #334AC8 #6174D7 #929FE3

Accessibility & contrast

On white

7.11
#334AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#334AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AC8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AC8#FFFFFF#000000##FFFFFF
##334AC81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334ac8;
/* rgb */ color: rgb(51, 74, 200);
/* oklch */ color: oklch(47.4% 0.196 269.3);
Tailwind
colors: {
  custom: {
    50: '#807cda',
    500: '#334ac8',
    950: '#000000',
  },
}
SCSS
$custom: #334ac8;
$custom-light: #807cda;
$custom-dark: #000000;
JSON
{
  "hex": "#334ac8",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 200
  },
  "hsl": {
    "h": 230.738,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47442,
    "c": 0.19631,
    "h": 269.3
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#334AC8
secondary
#CEC389
accent
#CA45E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #334AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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