#2A3FA7#2A3FA7

#2A3FA7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.168 H 269.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2A3FA7
RGBrgb(42, 63, 167)
HSLhsl(230, 60%, 41%)
HSVhsv(230, 75%, 65%)
CMYKcmyk(74.9%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.43, 29.25, -58.24)
CIE-LCHlch(31.43, 65.17, 296.67°)
OKLaboklab(42.03% -0.003 -0.1683)
OKLCHoklch(42.03% 0.168 269)
XYZxyz(9.7050, 6.8362, 37.3598)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FA7 #A7922A
analogous
#2A7DA7 #2A3FA7 #532AA7
triadic
#2A3FA7 #A72A3F #3FA72A
tetradic
#2A3FA7 #A72A7D #A7922A #2AA753
square
#2A3FA7 #A72A7D #A7922A #2AA753
split-complementary
#2A3FA7 #A7532A #7DA72A
monochromatic
#111A45 #1E2D76 #2A3FA7 #3F57CF #7082DB

Accessibility & contrast

On white

8.87
#2A3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A3FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FA7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FA7#FFFFFF#000000##FFFFFF
##2A3FA71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a3fa7;
/* rgb */ color: rgb(42, 63, 167);
/* oklch */ color: oklch(42.0% 0.168 269.0);
Tailwind
colors: {
  custom: {
    50: '#7673c2',
    500: '#2a3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fa7;
$custom-light: #7673c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fa7",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 229.92,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42026,
    "c": 0.16829,
    "h": 269
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#2A3FA7
secondary
#C2B36B
accent
#C845E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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