#2A3779#2A3779

#2A3779 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.113 H 271.3°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2A3779
RGBrgb(42, 55, 121)
HSLhsl(230, 48%, 32%)
HSVhsv(230, 65%, 47%)
CMYKcmyk(65.3%, 54.5%, 0%, 52.5%)
CIE-LABlab(25.58, 17.31, -39.43)
CIE-LCHlch(25.58, 43.06, 293.70°)
OKLaboklab(36.5% 0.0027 -0.1131)
OKLCHoklch(36.5% 0.113 271.3)
XYZxyz(5.7711, 4.6046, 18.6701)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3779 #796C2A
analogous
#2A5F79 #2A3779 #452A79
triadic
#2A3779 #792A37 #37792A
tetradic
#2A3779 #792A5F #796C2A #2A7945
square
#2A3779 #792A5F #796C2A #2A7945
split-complementary
#2A3779 #79452A #5F792A
monochromatic
#0A0E1E #1A224C #2A3779 #3A4CA6 #586AC5

Accessibility & contrast

On white

10.93
#2A3779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A3779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3779
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3779#FFFFFF#000000##FFFFFF
##2A37791.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407B
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#004652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3779;
/* rgb */ color: rgb(42, 55, 121);
/* oklch */ color: oklch(36.5% 0.113 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d6da0',
    500: '#2a3779',
    950: '#000000',
  },
}
SCSS
$custom: #2a3779;
$custom-light: #6d6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3779",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 121
  },
  "hsl": {
    "h": 230.127,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36498,
    "c": 0.11311,
    "h": 271.3
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#2A3779
secondary
#AB9C54
accent
#C250D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A3779

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

Preview Lab → · Contrast checker → · Palette generator →

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