#3A4297#3A4297

#3A4297 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.138 H 274.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#3A4297
RGBrgb(58, 66, 151)
HSLhsl(235, 44%, 41%)
HSVhsv(235, 62%, 59%)
CMYKcmyk(61.6%, 56.3%, 0%, 40.8%)
CIE-LABlab(31.87, 23.86, -47.80)
CIE-LCHlch(31.87, 53.43, 296.52°)
OKLaboklab(42.21% 0.0115 -0.1372)
OKLCHoklch(42.21% 0.138 274.8)
XYZxyz(9.2772, 7.0296, 30.1401)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4297 #978F3A
analogous
#3A7097 #3A4297 #603A97
triadic
#3A4297 #973A42 #42973A
tetradic
#3A4297 #973A70 #978F3A #3A9760
square
#3A4297 #973A70 #978F3A #3A9760
split-complementary
#3A4297 #97603A #70973A
monochromatic
#181B3F #292F6B #3A4297 #525BBC #7E85CD

Accessibility & contrast

On white

8.73
#3A4297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3A4297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4297
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4297#FFFFFF#000000##FFFFFF
##3A42971.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a4297;
/* rgb */ color: rgb(58, 66, 151);
/* oklch */ color: oklch(42.2% 0.138 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a76b6',
    500: '#3a4297',
    950: '#000000',
  },
}
SCSS
$custom: #3a4297;
$custom-light: #7a76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4297",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 234.839,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42206,
    "c": 0.13765,
    "h": 274.8
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#3A4297
secondary
#B7B176
accent
#C954D4
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #3A4297

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

Preview Lab → · Contrast checker → · Palette generator →

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