#334C8B#334C8B

#334C8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.0% C 0.109 H 265.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#334C8B
RGBrgb(51, 76, 139)
HSLhsl(223, 46%, 37%)
HSVhsv(223, 63%, 55%)
CMYKcmyk(63.3%, 45.3%, 0%, 45.5%)
CIE-LABlab(33.43, 11.49, -38.00)
CIE-LCHlch(33.43, 39.70, 286.83°)
OKLaboklab(43.01% -0.0081 -0.1084)
OKLCHoklch(43.01% 0.109 265.7)
XYZxyz(8.6083, 7.7360, 25.4606)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8B #8B7233
analogous
#33788B #334C8B #46338B
triadic
#334C8B #8B334C #4C8B33
tetradic
#334C8B #8B3378 #8B7233 #338B46
square
#334C8B #8B3378 #8B7233 #338B46
split-complementary
#334C8B #8B4633 #788B33
monochromatic
#121B31 #23345E #334C8B #4364B8 #6E88CA

Accessibility & contrast

On white

8.24
#334C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#334C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C8B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8B#FFFFFF#000000##FFFFFF
##334C8B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c8b;
/* rgb */ color: rgb(51, 76, 139);
/* oklch */ color: oklch(43.0% 0.109 265.7);
Tailwind
colors: {
  custom: {
    50: '#737dad',
    500: '#334c8b',
    950: '#000000',
  },
}
SCSS
$custom: #334c8b;
$custom-light: #737dad;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8b",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 222.955,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43007,
    "c": 0.10867,
    "h": 265.7
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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