#2A3A99#2A3A99

#2A3A99 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.155 H 270.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A3A99
RGBrgb(42, 58, 153)
HSLhsl(231, 57%, 38%)
HSVhsv(231, 73%, 60%)
CMYKcmyk(72.5%, 62.1%, 0%, 40%)
CIE-LABlab(28.95, 27.34, -53.82)
CIE-LCHlch(28.95, 60.37, 296.93°)
OKLaboklab(39.82% 0.0009 -0.1554)
OKLCHoklch(39.82% 0.155 270.3)
XYZxyz(8.2157, 5.8174, 30.8207)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A99 #99892A
analogous
#2A7199 #2A3A99 #512A99
triadic
#2A3A99 #992A3A #3A992A
tetradic
#2A3A99 #992A71 #99892A #2A9951
square
#2A3A99 #992A71 #99892A #2A9951
split-complementary
#2A3A99 #99512A #71992A
monochromatic
#101639 #1D2869 #2A3A99 #384DC8 #6878D6

Accessibility & contrast

On white

9.71
#2A3A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A3A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A99
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A99#FFFFFF#000000##FFFFFF
##2A3A991.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3a99;
/* rgb */ color: rgb(42, 58, 153);
/* oklch */ color: oklch(39.8% 0.155 270.3);
Tailwind
colors: {
  custom: {
    50: '#7370b8',
    500: '#2a3a99',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a99;
$custom-light: #7370b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a99",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 231.351,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.15536,
    "h": 270.3
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#2A3A99
secondary
#BCAF63
accent
#CA48E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A99

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

Preview Lab → · Contrast checker → · Palette generator →

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