#334CD4#334CD4

#334CD4 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 48.9% C 0.209 H 268.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#334CD4
RGBrgb(51, 76, 212)
HSLhsl(231, 65%, 52%)
HSVhsv(231, 76%, 83%)
CMYKcmyk(75.9%, 64.2%, 0%, 16.9%)
CIE-LABlab(38.94, 38.28, -72.36)
CIE-LCHlch(38.94, 81.86, 297.88°)
OKLaboklab(48.87% -0.0042 -0.2093)
OKLCHoklch(48.87% 0.209 268.8)
XYZxyz(15.8292, 10.6244, 63.4911)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CD4 #D4BB33
analogous
#339DD4 #334CD4 #6B33D4
triadic
#334CD4 #D4334C #4CD433
tetradic
#334CD4 #D4339D #D4BB33 #33D46B
square
#334CD4 #D4339D #D4BB33 #33D46B
split-complementary
#334CD4 #D46B33 #9DD433
monochromatic
#182774 #2338A7 #334CD4 #6678DF #98A5E9

Accessibility & contrast

On white

6.72
#334CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#334CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334CD4
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CD4#FFFFFF#000000##FFFFFF
##334CD41.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#007089
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #334cd4;
/* rgb */ color: rgb(51, 76, 212);
/* oklch */ color: oklch(48.9% 0.209 268.8);
Tailwind
colors: {
  custom: {
    50: '#837ee2',
    500: '#334cd4',
    950: '#000000',
  },
}
SCSS
$custom: #334cd4;
$custom-light: #837ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#334cd4",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 230.683,
    "s": 65.182,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.20938,
    "h": 268.8
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#334CD4
secondary
#D5CA8E
accent
#CE40E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0D0A16
muted
#7D7C84

Preview Lab

Preview with #334CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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