#2A3A91#2A3A91

#2A3A91 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.144 H 270.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2A3A91
RGBrgb(42, 58, 145)
HSLhsl(231, 55%, 37%)
HSVhsv(231, 71%, 57%)
CMYKcmyk(71%, 60%, 0%, 43.1%)
CIE-LABlab(28.28, 24.33, -50.01)
CIE-LCHlch(28.28, 55.62, 295.94°)
OKLaboklab(39.11% 0.0009 -0.1442)
OKLCHoklch(39.11% 0.144 270.4)
XYZxyz(7.5770, 5.5619, 27.4568)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A91 #91812A
analogous
#2A6E91 #2A3A91 #4E2A91
triadic
#2A3A91 #912A3A #3A912A
tetradic
#2A3A91 #912A6E #91812A #2A914E
square
#2A3A91 #912A6E #91812A #2A914E
split-complementary
#2A3A91 #914E2A #6E912A
monochromatic
#0F1432 #1C2762 #2A3A91 #384DC0 #6375D2

Accessibility & contrast

On white

9.94
#2A3A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A3A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A91
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A91#FFFFFF#000000##FFFFFF
##2A3A911.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3a91;
/* rgb */ color: rgb(42, 58, 145);
/* oklch */ color: oklch(39.1% 0.144 270.4);
Tailwind
colors: {
  custom: {
    50: '#7270b2',
    500: '#2a3a91',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a91;
$custom-light: #7270b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a91",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 145
  },
  "hsl": {
    "h": 230.68,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39113,
    "c": 0.14417,
    "h": 270.4
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#2A3A91
secondary
#B8AA5F
accent
#C749DE
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A91

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

Preview Lab → · Contrast checker → · Palette generator →

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