#334CA3#334CA3

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

Color values

HEX#334CA3
RGBrgb(51, 76, 163)
HSLhsl(227, 52%, 42%)
HSVhsv(227, 69%, 64%)
CMYKcmyk(68.7%, 53.4%, 0%, 36.1%)
CIE-LABlab(35.04, 20.38, -49.96)
CIE-LCHlch(35.04, 53.95, 292.19°)
OKLaboklab(44.75% -0.0049 -0.1435)
OKLCHoklch(44.75% 0.144 268.1)
XYZxyz(10.5583, 8.5160, 35.7306)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA3 #A38A33
analogous
#3384A3 #334CA3 #5233A3
triadic
#334CA3 #A3334C #4CA333
tetradic
#334CA3 #A33384 #A38A33 #33A352
square
#334CA3 #A33384 #A38A33 #33A352
split-complementary
#334CA3 #A35233 #84A333
monochromatic
#162146 #243674 #334CA3 #4C68C7 #7B8FD6

Accessibility & contrast

On white

7.77
#334CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#334CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA3#FFFFFF#000000##FFFFFF
##334CA31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1258A6
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ca3;
/* rgb */ color: rgb(51, 76, 163);
/* oklch */ color: oklch(44.7% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#787dbf',
    500: '#334ca3',
    950: '#000000',
  },
}
SCSS
$custom: #334ca3;
$custom-light: #787dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca3",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 163
  },
  "hsl": {
    "h": 226.607,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44748,
    "c": 0.14363,
    "h": 268.1
  },
  "luminance": 0.08517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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