#2A3E79#2A3E79

#2A3E79 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.103 H 267.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2A3E79
RGBrgb(42, 62, 121)
HSLhsl(225, 48%, 32%)
HSVhsv(225, 65%, 47%)
CMYKcmyk(65.3%, 48.8%, 0%, 52.5%)
CIE-LABlab(27.62, 12.47, -36.14)
CIE-LCHlch(27.62, 38.23, 289.03°)
OKLaboklab(38.05% -0.0049 -0.1033)
OKLCHoklch(38.05% 0.103 267.3)
XYZxyz(6.1275, 5.3174, 18.7889)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E79 #79652A
analogous
#2A6679 #2A3E79 #3E2A79
triadic
#2A3E79 #792A3E #3E792A
tetradic
#2A3E79 #792A66 #79652A #2A793E
square
#2A3E79 #792A66 #79652A #2A793E
split-complementary
#2A3E79 #793E2A #66792A
monochromatic
#0A0F1E #1A274C #2A3E79 #3A55A6 #5874C5

Accessibility & contrast

On white

10.18
#2A3E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A3E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E79
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E79#FFFFFF#000000##FFFFFF
##2A3E791.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457B
Deuteranopia (green-blind)
#133E78
Tritanopia (blue-blind)
#004B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3e79;
/* rgb */ color: rgb(42, 62, 121);
/* oklch */ color: oklch(38.0% 0.103 267.3);
Tailwind
colors: {
  custom: {
    50: '#6c72a0',
    500: '#2a3e79',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e79;
$custom-light: #6c72a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e79",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 121
  },
  "hsl": {
    "h": 224.81,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38049,
    "c": 0.10342,
    "h": 267.3
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#2A3E79
secondary
#AB9554
accent
#B650D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2A3E79

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

Preview Lab → · Contrast checker → · Palette generator →

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