#2A3FA6#2A3FA6

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

Color values

HEX#2A3FA6
RGBrgb(42, 63, 166)
HSLhsl(230, 60%, 41%)
HSVhsv(230, 75%, 65%)
CMYKcmyk(74.7%, 62%, 0%, 34.9%)
CIE-LABlab(31.35, 28.88, -57.78)
CIE-LCHlch(31.35, 64.59, 296.56°)
OKLaboklab(41.94% -0.003 -0.1669)
OKLCHoklch(41.94% 0.167 269)
XYZxyz(9.6129, 6.7994, 36.8748)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FA6 #A6912A
analogous
#2A7DA6 #2A3FA6 #532AA6
triadic
#2A3FA6 #A62A3F #3FA62A
tetradic
#2A3FA6 #A62A7D #A6912A #2AA653
square
#2A3FA6 #A62A7D #A6912A #2AA653
split-complementary
#2A3FA6 #A6532A #7DA62A
monochromatic
#111A44 #1E2C75 #2A3FA6 #3F57CE #7082DB

Accessibility & contrast

On white

8.90
#2A3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2A3FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FA6
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FA6#FFFFFF#000000##FFFFFF
##2A3FA61.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a3fa6;
/* rgb */ color: rgb(42, 63, 166);
/* oklch */ color: oklch(41.9% 0.167 269.0);
Tailwind
colors: {
  custom: {
    50: '#7673c1',
    500: '#2a3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fa6;
$custom-light: #7673c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fa6",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 229.839,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41937,
    "c": 0.16693,
    "h": 269
  },
  "luminance": 0.068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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