#2A3D79#2A3D79

#2A3D79 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.105 H 267.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2A3D79
RGBrgb(42, 61, 121)
HSLhsl(226, 48%, 32%)
HSVhsv(226, 65%, 47%)
CMYKcmyk(65.3%, 49.6%, 0%, 52.5%)
CIE-LABlab(27.32, 13.16, -36.61)
CIE-LCHlch(27.32, 38.91, 289.76°)
OKLaboklab(37.82% -0.0038 -0.1047)
OKLCHoklch(37.82% 0.105 267.9)
XYZxyz(6.0736, 5.2097, 18.7709)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D79 #79662A
analogous
#2A6579 #2A3D79 #3F2A79
triadic
#2A3D79 #792A3D #3D792A
tetradic
#2A3D79 #792A65 #79662A #2A793F
square
#2A3D79 #792A65 #79662A #2A793F
split-complementary
#2A3D79 #793F2A #65792A
monochromatic
#0A0F1E #1A264C #2A3D79 #3A54A6 #5872C5

Accessibility & contrast

On white

10.28
#2A3D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A3D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D79
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D79#FFFFFF#000000##FFFFFF
##2A3D791.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F447B
Deuteranopia (green-blind)
#103D78
Tritanopia (blue-blind)
#004B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3d79;
/* rgb */ color: rgb(42, 61, 121);
/* oklch */ color: oklch(37.8% 0.105 267.9);
Tailwind
colors: {
  custom: {
    50: '#6c72a0',
    500: '#2a3d79',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d79;
$custom-light: #6c72a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d79",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 121
  },
  "hsl": {
    "h": 225.57,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37823,
    "c": 0.10479,
    "h": 267.9
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#2A3D79
secondary
#AB9654
accent
#B750D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A3D79

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

Preview Lab → · Contrast checker → · Palette generator →

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