#2A3191#2A3191

#2A3191 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.156 H 272.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2A3191
RGBrgb(42, 49, 145)
HSLhsl(236, 55%, 37%)
HSVhsv(236, 71%, 57%)
CMYKcmyk(71%, 66.2%, 0%, 43.1%)
CIE-LABlab(25.96, 30.33, -53.80)
CIE-LCHlch(25.96, 61.76, 299.42°)
OKLaboklab(37.4% 0.008 -0.1554)
OKLCHoklch(37.4% 0.156 272.9)
XYZxyz(7.1623, 4.7325, 27.3186)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3191 #918A2A
analogous
#2A6591 #2A3191 #572A91
triadic
#2A3191 #912A31 #31912A
tetradic
#2A3191 #912A65 #918A2A #2A9157
square
#2A3191 #912A65 #918A2A #2A9157
split-complementary
#2A3191 #91572A #65912A
monochromatic
#0F1132 #1C2162 #2A3191 #3841C0 #636BD2

Accessibility & contrast

On white

10.79
#2A3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3191
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3191#FFFFFF#000000##FFFFFF
##2A31911.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3191;
/* rgb */ color: rgb(42, 49, 145);
/* oklch */ color: oklch(37.4% 0.156 272.9);
Tailwind
colors: {
  custom: {
    50: '#7269b2',
    500: '#2a3191',
    950: '#000000',
  },
}
SCSS
$custom: #2a3191;
$custom-light: #7269b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3191",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 235.922,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37401,
    "c": 0.15558,
    "h": 272.9
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#2A3191
secondary
#B8B25F
accent
#D449DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3191

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

Preview Lab → · Contrast checker → · Palette generator →

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