#334EC1#334EC1

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

Color values

HEX#334EC1
RGBrgb(51, 78, 193)
HSLhsl(229, 58%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.6%, 59.6%, 0%, 24.3%)
CIE-LABlab(37.84, 30.14, -63.14)
CIE-LCHlch(37.84, 69.97, 295.52°)
OKLaboklab(47.57% -0.0051 -0.1823)
OKLCHoklch(47.57% 0.182 268.4)
XYZxyz(13.7119, 10.0014, 51.6495)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EC1 #C1A633
analogous
#3395C1 #334EC1 #5F33C1
triadic
#334EC1 #C1334E #4EC133
tetradic
#334EC1 #C13395 #C1A633 #33C15F
square
#334EC1 #C13395 #C1A633 #33C15F
split-complementary
#334EC1 #C15F33 #95C133
monochromatic
#192760 #263A91 #334EC1 #5D74D4 #8D9DE1

Accessibility & contrast

On white

7.00
#334EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#334EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334EC1
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EC1#FFFFFF#000000##FFFFFF
##334EC11.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334ec1;
/* rgb */ color: rgb(51, 78, 193);
/* oklch */ color: oklch(47.6% 0.182 268.4);
Tailwind
colors: {
  custom: {
    50: '#7f7fd5',
    500: '#334ec1',
    950: '#000000',
  },
}
SCSS
$custom: #334ec1;
$custom-light: #7f7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334ec1",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 228.592,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.18236,
    "h": 268.4
  },
  "luminance": 0.10003
}

Semantic roles & 50–950 ramp

primary
#334EC1
secondary
#CBBE84
accent
#C446E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #334EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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