#334F95#334F95

#334F95 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.4% C 0.120 H 265.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#334F95
RGBrgb(51, 79, 149)
HSLhsl(223, 49%, 39%)
HSVhsv(223, 66%, 58%)
CMYKcmyk(65.8%, 47%, 0%, 41.6%)
CIE-LABlab(34.93, 13.19, -41.68)
CIE-LCHlch(34.93, 43.72, 287.56°)
OKLaboklab(44.37% -0.0095 -0.1192)
OKLCHoklch(44.37% 0.12 265.4)
XYZxyz(9.5842, 8.4648, 29.5567)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F95 #957933
analogous
#338095 #334F95 #483395
triadic
#334F95 #95334F #4F9533
tetradic
#334F95 #953380 #957933 #339548
square
#334F95 #953380 #957933 #339548
split-complementary
#334F95 #954833 #809533
monochromatic
#141F3A #233767 #334F95 #4668C0 #738ECF

Accessibility & contrast

On white

7.80
#334F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#334F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F95
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F95#FFFFFF#000000##FFFFFF
##334F951.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5798
Deuteranopia (green-blind)
#1B4E94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334f95;
/* rgb */ color: rgb(51, 79, 149);
/* oklch */ color: oklch(44.4% 0.120 265.4);
Tailwind
colors: {
  custom: {
    50: '#757fb4',
    500: '#334f95',
    950: '#000000',
  },
}
SCSS
$custom: #334f95;
$custom-light: #757fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#334f95",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 222.857,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44366,
    "c": 0.11954,
    "h": 265.4
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#334F95
secondary
#B7A26C
accent
#B14FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F95

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

Preview Lab → · Contrast checker → · Palette generator →

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