#3A3F79#3A3F79

#3A3F79 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.4% C 0.097 H 277.2°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3A3F79
RGBrgb(58, 63, 121)
HSLhsl(235, 35%, 35%)
HSVhsv(235, 52%, 47%)
CMYKcmyk(52.1%, 47.9%, 0%, 52.5%)
CIE-LABlab(28.99, 15.38, -33.88)
CIE-LCHlch(28.99, 37.21, 294.41°)
OKLaboklab(39.38% 0.0122 -0.0963)
OKLCHoklch(39.38% 0.097 277.2)
XYZxyz(6.9725, 5.8346, 18.8442)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3F79 #79743A
analogous
#3A5F79 #3A3F79 #543A79
triadic
#3A3F79 #793A3F #3F793A
tetradic
#3A3F79 #793A5F #79743A #3A7954
square
#3A3F79 #793A5F #79743A #3A7954
split-complementary
#3A3F79 #79543A #5F793A
monochromatic
#121426 #262950 #3A3F79 #4E55A2 #7278BB

Accessibility & contrast

On white

9.69
#3A3F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3A3F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3F79
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3F79#FFFFFF#000000##FFFFFF
##3A3F791.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#214B56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a3f79;
/* rgb */ color: rgb(58, 63, 121);
/* oklch */ color: oklch(39.4% 0.097 277.2);
Tailwind
colors: {
  custom: {
    50: '#7573a0',
    500: '#3a3f79',
    950: '#000000',
  },
}
SCSS
$custom: #3a3f79;
$custom-light: #7573a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3f79",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 121
  },
  "hsl": {
    "h": 235.238,
    "s": 35.196,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.09705,
    "h": 277.2
  },
  "luminance": 0.05835
}

Semantic roles & 50–950 ramp

primary
#3A3F79
secondary
#A5A06A
accent
#C25DCB
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080F
muted
#7B7B7E

Preview Lab

Preview with #3A3F79

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

Preview Lab → · Contrast checker → · Palette generator →

#3A3F79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva