#2A3FA2#2A3FA2

#2A3FA2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.161 H 269.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2A3FA2
RGBrgb(42, 63, 162)
HSLhsl(230, 59%, 40%)
HSVhsv(230, 74%, 64%)
CMYKcmyk(74.1%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.01, 27.38, -55.92)
CIE-LCHlch(31.01, 62.26, 296.09°)
OKLaboklab(41.58% -0.0029 -0.1614)
OKLCHoklch(41.58% 0.161 269)
XYZxyz(9.2517, 6.6549, 34.9724)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FA2 #A28D2A
analogous
#2A7BA2 #2A3FA2 #512AA2
triadic
#2A3FA2 #A22A3F #3FA22A
tetradic
#2A3FA2 #A22A7B #A28D2A #2AA251
square
#2A3FA2 #A22A7B #A28D2A #2AA251
split-complementary
#2A3FA2 #A2512A #7BA22A
monochromatic
#111941 #1D2C71 #2A3FA2 #3D56CD #6D80D9

Accessibility & contrast

On white

9.01
#2A3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FA2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FA2#FFFFFF#000000##FFFFFF
##2A3FA21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a3fa2;
/* rgb */ color: rgb(42, 63, 162);
/* oklch */ color: oklch(41.6% 0.161 269.0);
Tailwind
colors: {
  custom: {
    50: '#7573be',
    500: '#2a3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fa2;
$custom-light: #7573be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fa2",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 229.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41581,
    "c": 0.16148,
    "h": 269
  },
  "luminance": 0.06656
}

Semantic roles & 50–950 ramp

primary
#2A3FA2
secondary
#C0B168
accent
#C746E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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