#2A3891#2A3891

#2A3891 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.147 H 271.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3891
RGBrgb(42, 56, 145)
HSLhsl(232, 55%, 37%)
HSVhsv(232, 71%, 57%)
CMYKcmyk(71%, 61.4%, 0%, 43.1%)
CIE-LABlab(27.75, 25.68, -50.88)
CIE-LCHlch(27.75, 56.99, 296.78°)
OKLaboklab(38.72% 0.0026 -0.1467)
OKLCHoklch(38.72% 0.147 271)
XYZxyz(7.4781, 5.3642, 27.4239)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3891 #91832A
analogous
#2A6C91 #2A3891 #502A91
triadic
#2A3891 #912A38 #38912A
tetradic
#2A3891 #912A6C #91832A #2A9150
square
#2A3891 #912A6C #91832A #2A9150
split-complementary
#2A3891 #91502A #6C912A
monochromatic
#0F1332 #1C2662 #2A3891 #384AC0 #6372D2

Accessibility & contrast

On white

10.13
#2A3891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3891
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3891#FFFFFF#000000##FFFFFF
##2A38911.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3891;
/* rgb */ color: rgb(42, 56, 145);
/* oklch */ color: oklch(38.7% 0.147 271.0);
Tailwind
colors: {
  custom: {
    50: '#726eb2',
    500: '#2a3891',
    950: '#000000',
  },
}
SCSS
$custom: #2a3891;
$custom-light: #726eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3891",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 145
  },
  "hsl": {
    "h": 231.845,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.14675,
    "h": 271
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#2A3891
secondary
#B8AC5F
accent
#CA49DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3891

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

Preview Lab → · Contrast checker → · Palette generator →

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