#2A3F79#2A3F79

#2A3F79 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.102 H 266.6°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2A3F79
RGBrgb(42, 63, 121)
HSLhsl(224, 48%, 32%)
HSVhsv(224, 65%, 47%)
CMYKcmyk(65.3%, 47.9%, 0%, 52.5%)
CIE-LABlab(27.92, 11.78, -35.66)
CIE-LCHlch(27.92, 37.56, 288.28°)
OKLaboklab(38.28% -0.006 -0.1019)
OKLCHoklch(38.28% 0.102 266.6)
XYZxyz(6.1824, 5.4272, 18.8072)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F79 #79642A
analogous
#2A6779 #2A3F79 #3D2A79
triadic
#2A3F79 #792A3F #3F792A
tetradic
#2A3F79 #792A67 #79642A #2A793D
square
#2A3F79 #792A67 #79642A #2A793D
split-complementary
#2A3F79 #793D2A #67792A
monochromatic
#0A101E #1A274C #2A3F79 #3A57A6 #5875C5

Accessibility & contrast

On white

10.07
#2A3F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F79
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F79#FFFFFF#000000##FFFFFF
##2A3F791.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467B
Deuteranopia (green-blind)
#153F78
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3f79;
/* rgb */ color: rgb(42, 63, 121);
/* oklch */ color: oklch(38.3% 0.102 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c73a0',
    500: '#2a3f79',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f79;
$custom-light: #6c73a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f79",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 121
  },
  "hsl": {
    "h": 224.051,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.10206,
    "h": 266.6
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#2A3F79
secondary
#AB9454
accent
#B450D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2A3F79

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

Preview Lab → · Contrast checker → · Palette generator →

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