#2A3871#2A3871

#2A3871 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.099 H 270.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3871
RGBrgb(42, 56, 113)
HSLhsl(228, 46%, 30%)
HSVhsv(228, 63%, 44%)
CMYKcmyk(62.8%, 50.4%, 0%, 55.7%)
CIE-LABlab(25.30, 13.60, -34.79)
CIE-LCHlch(25.30, 37.36, 291.35°)
OKLaboklab(36.1% 0.0007 -0.0994)
OKLCHoklch(36.1% 0.099 270.4)
XYZxyz(5.3487, 4.5124, 16.2087)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3871 #71632A
analogous
#2A5B71 #2A3871 #3F2A71
triadic
#2A3871 #712A38 #38712A
tetradic
#2A3871 #712A5B #71632A #2A713F
square
#2A3871 #712A5B #71632A #2A713F
split-complementary
#2A3871 #713F2A #5B712A
monochromatic
#090C18 #192244 #2A3871 #3B4E9E #556AC0

Accessibility & contrast

On white

11.04
#2A3871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3871
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3871#FFFFFF#000000##FFFFFF
##2A38711.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#0F3970
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3871;
/* rgb */ color: rgb(42, 56, 113);
/* oklch */ color: oklch(36.1% 0.099 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b6e9a',
    500: '#2a3871',
    950: '#000000',
  },
}
SCSS
$custom: #2a3871;
$custom-light: #6b6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3871",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 228.169,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36104,
    "c": 0.09943,
    "h": 270.4
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#2A3871
secondary
#A39354
accent
#BC52D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3871

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

Preview Lab → · Contrast checker → · Palette generator →

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