#334AA5#334AA5

#334AA5 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.149 H 268.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#334AA5
RGBrgb(51, 74, 165)
HSLhsl(228, 53%, 42%)
HSVhsv(228, 69%, 65%)
CMYKcmyk(69.1%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.63, 22.44, -51.81)
CIE-LCHlch(34.63, 56.46, 293.42°)
OKLaboklab(44.49% -0.0029 -0.149)
OKLCHoklch(44.49% 0.149 268.9)
XYZxyz(10.6032, 8.3170, 36.6366)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AA5 #A58E33
analogous
#3383A5 #334AA5 #5533A5
triadic
#334AA5 #A5334A #4AA533
tetradic
#334AA5 #A53383 #A58E33 #33A555
square
#334AA5 #A53383 #A58E33 #33A555
split-complementary
#334AA5 #A55533 #83A533
monochromatic
#162048 #253576 #334AA5 #4D66C8 #7C8ED6

Accessibility & contrast

On white

7.88
#334AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#334AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AA5
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AA5#FFFFFF#000000##FFFFFF
##334AA51.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334aa5;
/* rgb */ color: rgb(51, 74, 165);
/* oklch */ color: oklch(44.5% 0.149 268.9);
Tailwind
colors: {
  custom: {
    50: '#797cc0',
    500: '#334aa5',
    950: '#000000',
  },
}
SCSS
$custom: #334aa5;
$custom-light: #797cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#334aa5",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 227.895,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44492,
    "c": 0.14905,
    "h": 268.9
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#334AA5
secondary
#BFB075
accent
#BF4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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