#334C90#334C90

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

Color values

HEX#334C90
RGBrgb(51, 76, 144)
HSLhsl(224, 48%, 38%)
HSVhsv(224, 65%, 56%)
CMYKcmyk(64.6%, 47.2%, 0%, 43.5%)
CIE-LABlab(33.74, 13.33, -40.55)
CIE-LCHlch(33.74, 42.68, 288.20°)
OKLaboklab(43.35% -0.0072 -0.1159)
OKLCHoklch(43.35% 0.116 266.4)
XYZxyz(8.9820, 7.8855, 27.4289)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C90 #907733
analogous
#337A90 #334C90 #483390
triadic
#334C90 #90334C #4C9033
tetradic
#334C90 #90337A #907733 #339048
square
#334C90 #90337A #907733 #339048
split-complementary
#334C90 #904833 #7A9033
monochromatic
#131C36 #233463 #334C90 #4464BD #7189CD

Accessibility & contrast

On white

8.15
#334C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334C90
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C90#FFFFFF#000000##FFFFFF
##334C901.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5493
Deuteranopia (green-blind)
#1B4B8F
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c90;
/* rgb */ color: rgb(51, 76, 144);
/* oklch */ color: oklch(43.4% 0.116 266.4);
Tailwind
colors: {
  custom: {
    50: '#747db1',
    500: '#334c90',
    950: '#000000',
  },
}
SCSS
$custom: #334c90;
$custom-light: #747db1;
$custom-dark: #000000;
JSON
{
  "hex": "#334c90",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 144
  },
  "hsl": {
    "h": 223.871,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43352,
    "c": 0.11609,
    "h": 266.4
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#334C90
secondary
#B5A16A
accent
#B351D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334C90

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

Preview Lab → · Contrast checker → · Palette generator →

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