#2A3876#2A3876

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

Color values

HEX#2A3876
RGBrgb(42, 56, 118)
HSLhsl(229, 48%, 31%)
HSVhsv(229, 64%, 46%)
CMYKcmyk(64.4%, 52.5%, 0%, 53.7%)
CIE-LABlab(25.65, 15.48, -37.41)
CIE-LCHlch(25.65, 40.49, 292.48°)
OKLaboklab(36.48% 0.0013 -0.1071)
OKLCHoklch(36.48% 0.107 270.7)
XYZxyz(5.6379, 4.6281, 17.7322)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3876 #76682A
analogous
#2A5E76 #2A3876 #422A76
triadic
#2A3876 #762A38 #38762A
tetradic
#2A3876 #762A5E #76682A #2A7642
square
#2A3876 #762A5E #76682A #2A7642
split-complementary
#2A3876 #76422A #5E762A
monochromatic
#0A0D1C #1A2349 #2A3876 #3A4DA3 #576BC3

Accessibility & contrast

On white

10.90
#2A3876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A3876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3876
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3876#FFFFFF#000000##FFFFFF
##2A38761.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164078
Deuteranopia (green-blind)
#043A75
Tritanopia (blue-blind)
#004651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3876;
/* rgb */ color: rgb(42, 56, 118);
/* oklch */ color: oklch(36.5% 0.107 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c6e9e',
    500: '#2a3876',
    950: '#000000',
  },
}
SCSS
$custom: #2a3876;
$custom-light: #6c6e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3876",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 118
  },
  "hsl": {
    "h": 228.947,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.10715,
    "h": 270.7
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#2A3876
secondary
#A89854
accent
#BE51D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3876

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

Preview Lab → · Contrast checker → · Palette generator →

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