#334B85#334B85

#334B85 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.101 H 265.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#334B85
RGBrgb(51, 75, 133)
HSLhsl(222, 45%, 36%)
HSVhsv(222, 62%, 52%)
CMYKcmyk(61.7%, 43.6%, 0%, 47.8%)
CIE-LABlab(32.76, 9.97, -35.37)
CIE-LCHlch(32.76, 36.74, 285.74°)
OKLaboklab(42.38% -0.0081 -0.1007)
OKLCHoklch(42.38% 0.101 265.4)
XYZxyz(8.1135, 7.4287, 23.1921)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B85 #856D33
analogous
#337485 #334B85 #443385
triadic
#334B85 #85334B #4B8533
tetradic
#334B85 #853374 #856D33 #338544
square
#334B85 #853374 #856D33 #338544
split-complementary
#334B85 #854433 #748533
monochromatic
#11192D #223259 #334B85 #4464B1 #6C86C7

Accessibility & contrast

On white

8.45
#334B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#334B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B85
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B85#FFFFFF#000000##FFFFFF
##334B851.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315187
Deuteranopia (green-blind)
#264A84
Tritanopia (blue-blind)
#005861
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334b85;
/* rgb */ color: rgb(51, 75, 133);
/* oklch */ color: oklch(42.4% 0.101 265.4);
Tailwind
colors: {
  custom: {
    50: '#727ca9',
    500: '#334b85',
    950: '#000000',
  },
}
SCSS
$custom: #334b85;
$custom-light: #727ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#334b85",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 133
  },
  "hsl": {
    "h": 222.439,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42378,
    "c": 0.10099,
    "h": 265.4
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#334B85
secondary
#AE9965
accent
#AF54D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334B85

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

Preview Lab → · Contrast checker → · Palette generator →

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