#334AC9#334AC9

#334AC9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.5% C 0.198 H 269.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#334AC9
RGBrgb(51, 74, 201)
HSLhsl(231, 60%, 49%)
HSVhsv(231, 75%, 79%)
CMYKcmyk(74.6%, 63.2%, 0%, 21.2%)
CIE-LABlab(37.51, 35.60, -68.35)
CIE-LCHlch(37.51, 77.06, 297.52°)
OKLaboklab(47.53% -0.0026 -0.1976)
OKLCHoklch(47.53% 0.198 269.2)
XYZxyz(14.3530, 9.8169, 56.3854)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AC9 #C9B233
analogous
#3395C9 #334AC9 #6733C9
triadic
#334AC9 #C9334A #4AC933
tetradic
#334AC9 #C93395 #C9B233 #33C967
square
#334AC9 #C93395 #C9B233 #33C967
split-complementary
#334AC9 #C96733 #95C933
monochromatic
#1A2667 #273898 #334AC9 #6274D7 #939FE4

Accessibility & contrast

On white

7.09
#334AC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#334AC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AC9
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AC9#FFFFFF#000000##FFFFFF
##334AC91.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334ac9;
/* rgb */ color: rgb(51, 74, 201);
/* oklch */ color: oklch(47.5% 0.198 269.2);
Tailwind
colors: {
  custom: {
    50: '#817cda',
    500: '#334ac9',
    950: '#000000',
  },
}
SCSS
$custom: #334ac9;
$custom-light: #817cda;
$custom-dark: #000000;
JSON
{
  "hex": "#334ac9",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 201
  },
  "hsl": {
    "h": 230.8,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47531,
    "c": 0.19761,
    "h": 269.2
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#334AC9
secondary
#CFC489
accent
#CB45E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #334AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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