#2A3F9E#2A3F9E

#2A3F9E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.156 H 268.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2A3F9E
RGBrgb(42, 63, 158)
HSLhsl(229, 58%, 39%)
HSVhsv(229, 73%, 62%)
CMYKcmyk(73.4%, 60.1%, 0%, 38%)
CIE-LABlab(30.68, 25.87, -54.04)
CIE-LCHlch(30.68, 59.92, 295.58°)
OKLaboklab(41.23% -0.0029 -0.1559)
OKLCHoklch(41.23% 0.156 268.9)
XYZxyz(8.9018, 6.5150, 33.1295)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F9E #9E892A
analogous
#2A799E #2A3F9E #4F2A9E
triadic
#2A3F9E #9E2A3F #3F9E2A
tetradic
#2A3F9E #9E2A79 #9E892A #2A9E4F
square
#2A3F9E #9E2A79 #9E892A #2A9E4F
split-complementary
#2A3F9E #9E4F2A #799E2A
monochromatic
#10183D #1D2C6E #2A3F9E #3A55CB #6B7ED8

Accessibility & contrast

On white

9.12
#2A3F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A3F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F9E
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F9E#FFFFFF#000000##FFFFFF
##2A3F9E1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3f9e;
/* rgb */ color: rgb(42, 63, 158);
/* oklch */ color: oklch(41.2% 0.156 268.9);
Tailwind
colors: {
  custom: {
    50: '#7473bb',
    500: '#2a3f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f9e;
$custom-light: #7473bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f9e",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 229.138,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41231,
    "c": 0.15597,
    "h": 268.9
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#2A3F9E
secondary
#BEAE66
accent
#C547E1
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A3F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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