#334079#334079

#334079 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.098 H 271.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#334079
RGBrgb(51, 64, 121)
HSLhsl(229, 41%, 34%)
HSVhsv(229, 58%, 47%)
CMYKcmyk(57.9%, 47.1%, 0%, 52.5%)
CIE-LABlab(28.77, 13.02, -34.26)
CIE-LCHlch(28.77, 36.65, 290.81°)
OKLaboklab(39.08% 0.0027 -0.0975)
OKLCHoklch(39.08% 0.098 271.6)
XYZxyz(6.6487, 5.7506, 18.8451)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334079 #796C33
analogous
#336379 #334079 #493379
triadic
#334079 #793340 #407933
tetradic
#334079 #793363 #796C33 #337949
square
#334079 #793363 #796C33 #337949
split-complementary
#334079 #794933 #637933
monochromatic
#0F1223 #21294E #334079 #4557A4 #6778BF

Accessibility & contrast

On white

9.77
#334079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#334079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334079
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334079#FFFFFF#000000##FFFFFF
##3340791.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27477B
Deuteranopia (green-blind)
#1E4178
Tritanopia (blue-blind)
#0B4D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334079;
/* rgb */ color: rgb(51, 64, 121);
/* oklch */ color: oklch(39.1% 0.098 271.6);
Tailwind
colors: {
  custom: {
    50: '#7174a0',
    500: '#334079',
    950: '#000000',
  },
}
SCSS
$custom: #334079;
$custom-light: #7174a0;
$custom-dark: #000000;
JSON
{
  "hex": "#334079",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 121
  },
  "hsl": {
    "h": 228.857,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.09759,
    "h": 271.6
  },
  "luminance": 0.05751
}

Semantic roles & 50–950 ramp

primary
#334079
secondary
#A79A61
accent
#BA57D1
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #334079

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

Preview Lab → · Contrast checker → · Palette generator →

#334079 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva