#334C91#334C91

#334C91 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.4% C 0.118 H 266.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#334C91
RGBrgb(51, 76, 145)
HSLhsl(224, 48%, 38%)
HSVhsv(224, 65%, 57%)
CMYKcmyk(64.8%, 47.6%, 0%, 43.1%)
CIE-LABlab(33.81, 13.70, -41.05)
CIE-LCHlch(33.81, 43.28, 288.46°)
OKLaboklab(43.42% -0.007 -0.1174)
OKLCHoklch(43.42% 0.118 266.6)
XYZxyz(9.0588, 7.9162, 27.8332)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C91 #917833
analogous
#337B91 #334C91 #493391
triadic
#334C91 #91334C #4C9133
tetradic
#334C91 #91337B #917833 #339149
square
#334C91 #91337B #917833 #339149
split-complementary
#334C91 #914933 #7B9133
monochromatic
#131D36 #233464 #334C91 #4464BD #718ACD

Accessibility & contrast

On white

8.13
#334C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#334C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C91
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C91#FFFFFF#000000##FFFFFF
##334C911.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5494
Deuteranopia (green-blind)
#194B90
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c91;
/* rgb */ color: rgb(51, 76, 145);
/* oklch */ color: oklch(43.4% 0.118 266.6);
Tailwind
colors: {
  custom: {
    50: '#757db2',
    500: '#334c91',
    950: '#000000',
  },
}
SCSS
$custom: #334c91;
$custom-light: #757db2;
$custom-dark: #000000;
JSON
{
  "hex": "#334c91",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 145
  },
  "hsl": {
    "h": 224.043,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43422,
    "c": 0.11757,
    "h": 266.6
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#334C91
secondary
#B5A16B
accent
#B450D8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334C91

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

Preview Lab → · Contrast checker → · Palette generator →

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