#2A3B99#2A3B99

#2A3B99 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.154 H 270.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2A3B99
RGBrgb(42, 59, 153)
HSLhsl(231, 57%, 38%)
HSVhsv(231, 73%, 60%)
CMYKcmyk(72.5%, 61.4%, 0%, 40%)
CIE-LABlab(29.21, 26.67, -53.40)
CIE-LCHlch(29.21, 59.69, 296.54°)
OKLaboklab(40.01% 0.0001 -0.1541)
OKLCHoklch(40.01% 0.154 270)
XYZxyz(8.2666, 5.9192, 30.8377)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B99 #99882A
analogous
#2A7299 #2A3B99 #502A99
triadic
#2A3B99 #992A3B #3B992A
tetradic
#2A3B99 #992A72 #99882A #2A9950
square
#2A3B99 #992A72 #99882A #2A9950
split-complementary
#2A3B99 #99502A #72992A
monochromatic
#101639 #1D2869 #2A3B99 #384EC8 #6879D6

Accessibility & contrast

On white

9.62
#2A3B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A3B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B99
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B99#FFFFFF#000000##FFFFFF
##2A3B991.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3b99;
/* rgb */ color: rgb(42, 59, 153);
/* oklch */ color: oklch(40.0% 0.154 270.0);
Tailwind
colors: {
  custom: {
    50: '#7370b8',
    500: '#2a3b99',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b99;
$custom-light: #7370b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b99",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 153
  },
  "hsl": {
    "h": 230.811,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40011,
    "c": 0.1541,
    "h": 270
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#2A3B99
secondary
#BCAE63
accent
#C948E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3B99

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

Preview Lab → · Contrast checker → · Palette generator →

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