#334FA9#334FA9

#334FA9 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.148 H 267.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#334FA9
RGBrgb(51, 79, 169)
HSLhsl(226, 54%, 43%)
HSVhsv(226, 70%, 66%)
CMYKcmyk(69.8%, 53.3%, 0%, 33.7%)
CIE-LABlab(36.29, 20.62, -51.52)
CIE-LCHlch(36.29, 55.49, 291.81°)
OKLaboklab(45.83% -0.007 -0.1481)
OKLCHoklch(45.83% 0.148 267.3)
XYZxyz(11.3202, 9.1592, 38.6997)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA9 #A98D33
analogous
#338AA9 #334FA9 #5233A9
triadic
#334FA9 #A9334F #4FA933
tetradic
#334FA9 #A9338A #A98D33 #33A952
square
#334FA9 #A9338A #A98D33 #33A952
split-complementary
#334FA9 #A95233 #8AA933
monochromatic
#17234B #25397A #334FA9 #4F6CCA #7E94D8

Accessibility & contrast

On white

7.42
#334FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#334FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA9#FFFFFF#000000##FFFFFF
##334FA91.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125BAC
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334fa9;
/* rgb */ color: rgb(51, 79, 169);
/* oklch */ color: oklch(45.8% 0.148 267.3);
Tailwind
colors: {
  custom: {
    50: '#797fc3',
    500: '#334fa9',
    950: '#000000',
  },
}
SCSS
$custom: #334fa9;
$custom-light: #797fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa9",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 225.763,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45832,
    "c": 0.14826,
    "h": 267.3
  },
  "luminance": 0.0916
}

Semantic roles & 50–950 ramp

primary
#334FA9
secondary
#C1AF77
accent
#BA4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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