#2A3C79#2A3C79

#2A3C79 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.6% C 0.106 H 268.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2A3C79
RGBrgb(42, 60, 121)
HSLhsl(226, 48%, 32%)
HSVhsv(226, 65%, 47%)
CMYKcmyk(65.3%, 50.4%, 0%, 52.5%)
CIE-LABlab(27.03, 13.85, -37.09)
CIE-LCHlch(27.03, 39.59, 290.47°)
OKLaboklab(37.6% -0.0027 -0.1061)
OKLCHoklch(37.6% 0.106 268.5)
XYZxyz(6.0207, 5.1039, 18.7533)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C79 #79672A
analogous
#2A6479 #2A3C79 #402A79
triadic
#2A3C79 #792A3C #3C792A
tetradic
#2A3C79 #792A64 #79672A #2A7940
square
#2A3C79 #792A64 #79672A #2A7940
split-complementary
#2A3C79 #79402A #64792A
monochromatic
#0A0F1E #1A254C #2A3C79 #3A53A6 #5871C5

Accessibility & contrast

On white

10.39
#2A3C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A3C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C79
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C79#FFFFFF#000000##FFFFFF
##2A3C791.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447B
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3c79;
/* rgb */ color: rgb(42, 60, 121);
/* oklch */ color: oklch(37.6% 0.106 268.5);
Tailwind
colors: {
  custom: {
    50: '#6c71a0',
    500: '#2a3c79',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c79;
$custom-light: #6c71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c79",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 121
  },
  "hsl": {
    "h": 226.329,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37598,
    "c": 0.10616,
    "h": 268.5
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#2A3C79
secondary
#AB9754
accent
#B950D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A3C79

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

Preview Lab → · Contrast checker → · Palette generator →

#2A3C79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva