#334CA5#334CA5

#334CA5 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.9% C 0.146 H 268.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#334CA5
RGBrgb(51, 76, 165)
HSLhsl(227, 53%, 42%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.1%, 53.9%, 0%, 35.3%)
CIE-LABlab(35.18, 21.12, -50.92)
CIE-LCHlch(35.18, 55.13, 292.52°)
OKLaboklab(44.9% -0.0047 -0.1464)
OKLCHoklch(44.9% 0.146 268.2)
XYZxyz(10.7389, 8.5883, 36.6818)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA5 #A58C33
analogous
#3385A5 #334CA5 #5333A5
triadic
#334CA5 #A5334C #4CA533
tetradic
#334CA5 #A53385 #A58C33 #33A553
square
#334CA5 #A53385 #A58C33 #33A553
split-complementary
#334CA5 #A55333 #85A533
monochromatic
#162148 #253676 #334CA5 #4D68C8 #7C90D6

Accessibility & contrast

On white

7.73
#334CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#334CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA5#FFFFFF#000000##FFFFFF
##334CA51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D58A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ca5;
/* rgb */ color: rgb(51, 76, 165);
/* oklch */ color: oklch(44.9% 0.146 268.2);
Tailwind
colors: {
  custom: {
    50: '#797dc0',
    500: '#334ca5',
    950: '#000000',
  },
}
SCSS
$custom: #334ca5;
$custom-light: #797dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca5",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 226.842,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.14648,
    "h": 268.2
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#334CA5
secondary
#BFAF75
accent
#BC4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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