#334CAB#334CAB

#334CAB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.155 H 268.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#334CAB
RGBrgb(51, 76, 171)
HSLhsl(228, 54%, 44%)
HSVhsv(228, 70%, 67%)
CMYKcmyk(70.2%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.62, 23.34, -53.79)
CIE-LCHlch(35.62, 58.64, 293.46°)
OKLaboklab(45.37% -0.0043 -0.1548)
OKLCHoklch(45.37% 0.155 268.4)
XYZxyz(11.2978, 8.8118, 39.6256)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CAB #AB9233
analogous
#3388AB #334CAB #5633AB
triadic
#334CAB #AB334C #4CAB33
tetradic
#334CAB #AB3388 #AB9233 #33AB56
square
#334CAB #AB3388 #AB9233 #33AB56
split-complementary
#334CAB #AB5633 #88AB33
monochromatic
#17224D #25377C #334CAB #506ACB #7F92D9

Accessibility & contrast

On white

7.60
#334CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CAB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CAB#FFFFFF#000000##FFFFFF
##334CAB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334cab;
/* rgb */ color: rgb(51, 76, 171);
/* oklch */ color: oklch(45.4% 0.155 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dc5',
    500: '#334cab',
    950: '#000000',
  },
}
SCSS
$custom: #334cab;
$custom-light: #7a7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#334cab",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 227.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.15489,
    "h": 268.4
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#334CAB
secondary
#C2B378
accent
#BF4ADD
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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