#2A3BA1#2A3BA1

#2A3BA1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.165 H 270.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#2A3BA1
RGBrgb(42, 59, 161)
HSLhsl(231, 59%, 40%)
HSVhsv(231, 74%, 63%)
CMYKcmyk(73.9%, 63.4%, 0%, 36.9%)
CIE-LABlab(29.89, 29.66, -57.14)
CIE-LCHlch(29.89, 64.38, 297.43°)
OKLaboklab(40.73% 0 -0.1651)
OKLCHoklch(40.73% 0.165 270)
XYZxyz(8.9496, 6.1924, 34.4349)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3BA1 #A1902A
analogous
#2A76A1 #2A3BA1 #552AA1
triadic
#2A3BA1 #A12A3B #3BA12A
tetradic
#2A3BA1 #A12A76 #A1902A #2AA155
square
#2A3BA1 #A12A76 #A1902A #2AA155
split-complementary
#2A3BA1 #A1552A #76A12A
monochromatic
#111740 #1D2970 #2A3BA1 #3C51CC #6D7CD9

Accessibility & contrast

On white

9.38
#2A3BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3BA1
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3BA1#FFFFFF#000000##FFFFFF
##2A3BA11.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3ba1;
/* rgb */ color: rgb(42, 59, 161);
/* oklch */ color: oklch(40.7% 0.165 270.0);
Tailwind
colors: {
  custom: {
    50: '#7570be',
    500: '#2a3ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2a3ba1;
$custom-light: #7570be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3ba1",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 231.429,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.16507,
    "h": 270
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#2A3BA1
secondary
#C0B367
accent
#CC46E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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