#334FA8#334FA8

#334FA8 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.147 H 267.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#334FA8
RGBrgb(51, 79, 168)
HSLhsl(226, 53%, 43%)
HSVhsv(226, 70%, 66%)
CMYKcmyk(69.6%, 53%, 0%, 34.1%)
CIE-LABlab(36.22, 20.25, -51.04)
CIE-LCHlch(36.22, 54.91, 291.64°)
OKLaboklab(45.76% -0.0071 -0.1467)
OKLCHoklch(45.76% 0.147 267.2)
XYZxyz(11.2267, 9.1218, 38.2072)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA8 #A88C33
analogous
#3389A8 #334FA8 #5133A8
triadic
#334FA8 #A8334F #4FA833
tetradic
#334FA8 #A83389 #A88C33 #33A851
square
#334FA8 #A83389 #A88C33 #33A851
split-complementary
#334FA8 #A85133 #89A833
monochromatic
#16234A #253979 #334FA8 #4F6CC9 #7E93D8

Accessibility & contrast

On white

7.43
#334FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#334FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA8#FFFFFF#000000##FFFFFF
##334FA81.007.432.827.43
#FFFFFF7.431.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145BAB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334fa8;
/* rgb */ color: rgb(51, 79, 168);
/* oklch */ color: oklch(45.8% 0.147 267.2);
Tailwind
colors: {
  custom: {
    50: '#797fc2',
    500: '#334fa8',
    950: '#000000',
  },
}
SCSS
$custom: #334fa8;
$custom-light: #797fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa8",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 225.641,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45756,
    "c": 0.14685,
    "h": 267.2
  },
  "luminance": 0.09123
}

Semantic roles & 50–950 ramp

primary
#334FA8
secondary
#C1AF76
accent
#BA4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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