#334FA6#334FA6

#334FA6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.144 H 267.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#334FA6
RGBrgb(51, 79, 166)
HSLhsl(225, 53%, 43%)
HSVhsv(225, 69%, 65%)
CMYKcmyk(69.3%, 52.4%, 0%, 34.9%)
CIE-LABlab(36.08, 19.50, -50.07)
CIE-LCHlch(36.08, 53.74, 291.28°)
OKLaboklab(45.6% -0.0073 -0.1438)
OKLCHoklch(45.6% 0.144 267.1)
XYZxyz(11.0418, 9.0479, 37.2335)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA6 #A68A33
analogous
#3389A6 #334FA6 #5033A6
triadic
#334FA6 #A6334F #4FA633
tetradic
#334FA6 #A63389 #A68A33 #33A650
square
#334FA6 #A63389 #A68A33 #33A650
split-complementary
#334FA6 #A65033 #89A633
monochromatic
#162248 #253977 #334FA6 #4E6CC9 #7C93D7

Accessibility & contrast

On white

7.47
#334FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#334FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA6
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA6#FFFFFF#000000##FFFFFF
##334FA61.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334fa6;
/* rgb */ color: rgb(51, 79, 166);
/* oklch */ color: oklch(45.6% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#797fc1',
    500: '#334fa6',
    950: '#000000',
  },
}
SCSS
$custom: #334fa6;
$custom-light: #797fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa6",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 225.391,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45603,
    "c": 0.14403,
    "h": 267.1
  },
  "luminance": 0.09049
}

Semantic roles & 50–950 ramp

primary
#334FA6
secondary
#C0AE75
accent
#B94BDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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