#334BA5#334BA5

#334BA5 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.148 H 268.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#334BA5
RGBrgb(51, 75, 165)
HSLhsl(227, 53%, 42%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.1%, 54.5%, 0%, 35.3%)
CIE-LABlab(34.91, 21.78, -51.37)
CIE-LCHlch(34.91, 55.79, 292.98°)
OKLaboklab(44.7% -0.0038 -0.1477)
OKLCHoklch(44.7% 0.148 268.5)
XYZxyz(10.6705, 8.4515, 36.6590)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA5 #A58D33
analogous
#3384A5 #334BA5 #5433A5
triadic
#334BA5 #A5334B #4BA533
tetradic
#334BA5 #A53384 #A58D33 #33A554
square
#334BA5 #A53384 #A58D33 #33A554
split-complementary
#334BA5 #A55433 #84A533
monochromatic
#162148 #253676 #334BA5 #4D67C8 #7C8FD6

Accessibility & contrast

On white

7.80
#334BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#334BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA5
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA5#FFFFFF#000000##FFFFFF
##334BA51.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0758A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ba5;
/* rgb */ color: rgb(51, 75, 165);
/* oklch */ color: oklch(44.7% 0.148 268.5);
Tailwind
colors: {
  custom: {
    50: '#797cc0',
    500: '#334ba5',
    950: '#000000',
  },
}
SCSS
$custom: #334ba5;
$custom-light: #797cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba5",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 227.368,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44696,
    "c": 0.14776,
    "h": 268.5
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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