#334AA7#334AA7

#334AA7 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.152 H 268.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#334AA7
RGBrgb(51, 74, 167)
HSLhsl(228, 53%, 43%)
HSVhsv(228, 69%, 65%)
CMYKcmyk(69.5%, 55.7%, 0%, 34.5%)
CIE-LABlab(34.78, 23.19, -52.76)
CIE-LCHlch(34.78, 57.63, 293.72°)
OKLaboklab(44.65% -0.0028 -0.1518)
OKLCHoklch(44.65% 0.152 268.9)
XYZxyz(10.7867, 8.3903, 37.6028)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AA7 #A79033
analogous
#3384A7 #334AA7 #5633A7
triadic
#334AA7 #A7334A #4AA733
tetradic
#334AA7 #A73384 #A79033 #33A756
square
#334AA7 #A73384 #A79033 #33A756
split-complementary
#334AA7 #A75633 #84A733
monochromatic
#162049 #253578 #334AA7 #4E67C9 #7D8FD7

Accessibility & contrast

On white

7.84
#334AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#334AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AA7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AA7#FFFFFF#000000##FFFFFF
##334AA71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334aa7;
/* rgb */ color: rgb(51, 74, 167);
/* oklch */ color: oklch(44.7% 0.152 268.9);
Tailwind
colors: {
  custom: {
    50: '#797cc2',
    500: '#334aa7',
    950: '#000000',
  },
}
SCSS
$custom: #334aa7;
$custom-light: #797cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334aa7",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 228.103,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44651,
    "c": 0.15186,
    "h": 268.9
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#334AA7
secondary
#C0B176
accent
#C04BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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