#334EC5#334EC5

#334EC5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.188 H 268.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#334EC5
RGBrgb(51, 78, 197)
HSLhsl(229, 59%, 49%)
HSVhsv(229, 74%, 77%)
CMYKcmyk(74.1%, 60.4%, 0%, 22.7%)
CIE-LABlab(38.17, 31.61, -64.95)
CIE-LCHlch(38.17, 72.23, 295.95°)
OKLaboklab(47.91% -0.0051 -0.1876)
OKLCHoklch(47.91% 0.188 268.4)
XYZxyz(14.1642, 10.1823, 54.0314)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EC5 #C5AA33
analogous
#3397C5 #334EC5 #6133C5
triadic
#334EC5 #C5334E #4EC533
tetradic
#334EC5 #C53397 #C5AA33 #33C561
square
#334EC5 #C53397 #C5AA33 #33C561
split-complementary
#334EC5 #C56133 #97C533
monochromatic
#1A2864 #263B94 #334EC5 #5F75D6 #909FE2

Accessibility & contrast

On white

6.92
#334EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#334EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334EC5
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EC5#FFFFFF#000000##FFFFFF
##334EC51.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334ec5;
/* rgb */ color: rgb(51, 78, 197);
/* oklch */ color: oklch(47.9% 0.188 268.4);
Tailwind
colors: {
  custom: {
    50: '#7f7fd8',
    500: '#334ec5',
    950: '#000000',
  },
}
SCSS
$custom: #334ec5;
$custom-light: #7f7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#334ec5",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 228.904,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47913,
    "c": 0.18765,
    "h": 268.4
  },
  "luminance": 0.10184
}

Semantic roles & 50–950 ramp

primary
#334EC5
secondary
#CDC087
accent
#C546E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #334EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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