#334EC2#334EC2

#334EC2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.7% C 0.184 H 268.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#334EC2
RGBrgb(51, 78, 194)
HSLhsl(229, 58%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.7%, 59.8%, 0%, 23.9%)
CIE-LABlab(37.93, 30.51, -63.60)
CIE-LCHlch(37.93, 70.54, 295.63°)
OKLaboklab(47.66% -0.0051 -0.1836)
OKLCHoklch(47.66% 0.184 268.4)
XYZxyz(13.8239, 10.0462, 52.2390)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EC2 #C2A733
analogous
#3395C2 #334EC2 #5F33C2
triadic
#334EC2 #C2334E #4EC233
tetradic
#334EC2 #C23395 #C2A733 #33C25F
square
#334EC2 #C23395 #C2A733 #33C25F
split-complementary
#334EC2 #C25F33 #95C233
monochromatic
#1A2761 #263B92 #334EC2 #5E74D5 #8E9EE1

Accessibility & contrast

On white

6.98
#334EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#334EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334EC2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EC2#FFFFFF#000000##FFFFFF
##334EC21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334ec2;
/* rgb */ color: rgb(51, 78, 194);
/* oklch */ color: oklch(47.7% 0.184 268.4);
Tailwind
colors: {
  custom: {
    50: '#7f7fd5',
    500: '#334ec2',
    950: '#000000',
  },
}
SCSS
$custom: #334ec2;
$custom-light: #7f7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334ec2",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 228.671,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.18368,
    "h": 268.4
  },
  "luminance": 0.10048
}

Semantic roles & 50–950 ramp

primary
#334EC2
secondary
#CCBE85
accent
#C446E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #334EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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