#334EC9#334EC9

#334EC9 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.193 H 268.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#334EC9
RGBrgb(51, 78, 201)
HSLhsl(229, 60%, 49%)
HSVhsv(229, 75%, 79%)
CMYKcmyk(74.6%, 61.2%, 0%, 21.2%)
CIE-LABlab(38.49, 33.06, -66.74)
CIE-LCHlch(38.49, 74.48, 296.35°)
OKLaboklab(48.26% -0.0051 -0.1928)
OKLCHoklch(48.26% 0.193 268.5)
XYZxyz(14.6286, 10.3680, 56.4773)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EC9 #C9AE33
analogous
#3399C9 #334EC9 #6333C9
triadic
#334EC9 #C9334E #4EC933
tetradic
#334EC9 #C93399 #C9AE33 #33C963
square
#334EC9 #C93399 #C9AE33 #33C963
split-complementary
#334EC9 #C96333 #99C933
monochromatic
#1A2867 #273B98 #334EC9 #6277D7 #93A1E4

Accessibility & contrast

On white

6.83
#334EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#334EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334EC9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EC9#FFFFFF#000000##FFFFFF
##334EC91.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #334ec9;
/* rgb */ color: rgb(51, 78, 201);
/* oklch */ color: oklch(48.3% 0.193 268.5);
Tailwind
colors: {
  custom: {
    50: '#807fda',
    500: '#334ec9',
    950: '#000000',
  },
}
SCSS
$custom: #334ec9;
$custom-light: #807fda;
$custom-dark: #000000;
JSON
{
  "hex": "#334ec9",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 229.2,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48257,
    "c": 0.1929,
    "h": 268.5
  },
  "luminance": 0.1037
}

Semantic roles & 50–950 ramp

primary
#334EC9
secondary
#CFC289
accent
#C645E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #334EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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