#334A7E#334A7E

#334A7E is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.7% C 0.092 H 264.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#334A7E
RGBrgb(51, 74, 126)
HSLhsl(222, 42%, 35%)
HSVhsv(222, 60%, 49%)
CMYKcmyk(59.5%, 41.3%, 0%, 50.6%)
CIE-LABlab(32.05, 8.10, -32.17)
CIE-LCHlch(32.05, 33.17, 284.13°)
OKLaboklab(41.69% -0.0084 -0.0913)
OKLCHoklch(41.69% 0.092 264.7)
XYZxyz(7.5786, 7.1071, 20.7071)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A7E #7E6733
analogous
#33707E #334A7E #42337E
triadic
#334A7E #7E334A #4A7E33
tetradic
#334A7E #7E3370 #7E6733 #337E42
square
#334A7E #7E3370 #7E6733 #337E42
split-complementary
#334A7E #7E4233 #707E33
monochromatic
#101727 #213052 #334A7E #4564AA #6984C2

Accessibility & contrast

On white

8.67
#334A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#334A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A7E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A7E#FFFFFF#000000##FFFFFF
##334A7E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F80
Deuteranopia (green-blind)
#2A487D
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334a7e;
/* rgb */ color: rgb(51, 74, 126);
/* oklch */ color: oklch(41.7% 0.092 264.7);
Tailwind
colors: {
  custom: {
    50: '#717ca4',
    500: '#334a7e',
    950: '#000000',
  },
}
SCSS
$custom: #334a7e;
$custom-light: #717ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#334a7e",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 126
  },
  "hsl": {
    "h": 221.6,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.0917,
    "h": 264.7
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#334A7E
secondary
#AA9463
accent
#AC56D2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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