#2A3999#2A3999

#2A3999 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.157 H 270.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2A3999
RGBrgb(42, 57, 153)
HSLhsl(232, 57%, 38%)
HSVhsv(232, 73%, 60%)
CMYKcmyk(72.5%, 62.7%, 0%, 40%)
CIE-LABlab(28.69, 28.00, -54.25)
CIE-LCHlch(28.69, 61.05, 297.30°)
OKLaboklab(39.63% 0.0016 -0.1566)
OKLCHoklch(39.63% 0.157 270.6)
XYZxyz(8.1658, 5.7176, 30.8041)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3999 #998A2A
analogous
#2A7099 #2A3999 #522A99
triadic
#2A3999 #992A39 #39992A
tetradic
#2A3999 #992A70 #998A2A #2A9952
square
#2A3999 #992A70 #998A2A #2A9952
split-complementary
#2A3999 #99522A #70992A
monochromatic
#101539 #1D2769 #2A3999 #384BC8 #6877D6

Accessibility & contrast

On white

9.80
#2A3999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3999
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3999#FFFFFF#000000##FFFFFF
##2A39991.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3999;
/* rgb */ color: rgb(42, 57, 153);
/* oklch */ color: oklch(39.6% 0.157 270.6);
Tailwind
colors: {
  custom: {
    50: '#746fb8',
    500: '#2a3999',
    950: '#000000',
  },
}
SCSS
$custom: #2a3999;
$custom-light: #746fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3999",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 153
  },
  "hsl": {
    "h": 231.892,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39626,
    "c": 0.15662,
    "h": 270.6
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#2A3999
secondary
#BCB063
accent
#CC48E0
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3999

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

Preview Lab → · Contrast checker → · Palette generator →

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