#334C8A#334C8A

#334C8A is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.107 H 265.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#334C8A
RGBrgb(51, 76, 138)
HSLhsl(223, 46%, 37%)
HSVhsv(223, 63%, 54%)
CMYKcmyk(63%, 44.9%, 0%, 45.9%)
CIE-LABlab(33.36, 11.13, -37.48)
CIE-LCHlch(33.36, 39.10, 286.54°)
OKLaboklab(42.94% -0.0082 -0.1069)
OKLCHoklch(42.94% 0.107 265.6)
XYZxyz(8.5356, 7.7069, 25.0776)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8A #8A7133
analogous
#33788A #334C8A #46338A
triadic
#334C8A #8A334C #4C8A33
tetradic
#334C8A #8A3378 #8A7133 #338A46
square
#334C8A #8A3378 #8A7133 #338A46
split-complementary
#334C8A #8A4633 #788A33
monochromatic
#121B31 #22335D #334C8A #4465B7 #6E88C9

Accessibility & contrast

On white

8.26
#334C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#334C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C8A
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8A#FFFFFF#000000##FFFFFF
##334C8A1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334c8a;
/* rgb */ color: rgb(51, 76, 138);
/* oklch */ color: oklch(42.9% 0.107 265.6);
Tailwind
colors: {
  custom: {
    50: '#737dac',
    500: '#334c8a',
    950: '#000000',
  },
}
SCSS
$custom: #334c8a;
$custom-light: #737dac;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8a",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 222.759,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4294,
    "c": 0.10718,
    "h": 265.6
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#334C8A
secondary
#B19C67
accent
#B052D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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