#334EED#334EED

#334EED is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.5% C 0.238 H 268.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#334EED
RGBrgb(51, 78, 237)
HSLhsl(231, 84%, 56%)
HSVhsv(231, 78%, 93%)
CMYKcmyk(78.5%, 67.1%, 0%, 7.1%)
CIE-LABlab(41.63, 45.82, -82.19)
CIE-LCHlch(41.63, 94.10, 299.14°)
OKLaboklab(51.52% -0.0068 -0.238)
OKLCHoklch(51.52% 0.238 268.4)
XYZxyz(19.3704, 12.2648, 81.4508)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EED #EDD233
analogous
#33ABED #334EED #7533ED
triadic
#334EED #ED334E #4EED33
tetradic
#334EED #ED33AB #EDD233 #33ED75
square
#334EED #ED33AB #EDD233 #33ED75
split-complementary
#334EED #ED7533 #ABED33
monochromatic
#0D2298 #122ED0 #334EED #6B7FF2 #A3B0F7

Accessibility & contrast

On white

6.08
#334EED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#334EED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334EED
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EED#FFFFFF#000000##FFFFFF
##334EED1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF2
Deuteranopia (green-blind)
#0059EA
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #334eed;
/* rgb */ color: rgb(51, 78, 237);
/* oklch */ color: oklch(51.5% 0.238 268.4);
Tailwind
colors: {
  custom: {
    50: '#8980f4',
    500: '#334eed',
    950: '#000000',
  },
}
SCSS
$custom: #334eed;
$custom-light: #8980f4;
$custom-dark: #000000;
JSON
{
  "hex": "#334eed",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 237
  },
  "hsl": {
    "h": 231.29,
    "s": 83.784,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51521,
    "c": 0.23813,
    "h": 268.4
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#334EED
secondary
#E4D998
accent
#DC2EFA
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #334EED

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

Preview Lab → · Contrast checker → · Palette generator →

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