#2A3FA8#2A3FA8

#2A3FA8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.170 H 269.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A3FA8
RGBrgb(42, 63, 168)
HSLhsl(230, 60%, 41%)
HSVhsv(230, 75%, 66%)
CMYKcmyk(75%, 62.5%, 0%, 34.1%)
CIE-LABlab(31.52, 29.63, -58.70)
CIE-LCHlch(31.52, 65.75, 296.78°)
OKLaboklab(42.12% -0.003 -0.1696)
OKLCHoklch(42.12% 0.17 269)
XYZxyz(9.7978, 6.8734, 37.8485)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FA8 #A8932A
analogous
#2A7EA8 #2A3FA8 #542AA8
triadic
#2A3FA8 #A82A3F #3FA82A
tetradic
#2A3FA8 #A82A7E #A8932A #2AA854
square
#2A3FA8 #A82A7E #A8932A #2AA854
split-complementary
#2A3FA8 #A8542A #7EA82A
monochromatic
#121A46 #1E2D77 #2A3FA8 #4058CF #7183DB

Accessibility & contrast

On white

8.84
#2A3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3FA8
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FA8#FFFFFF#000000##FFFFFF
##2A3FA81.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3fa8;
/* rgb */ color: rgb(42, 63, 168);
/* oklch */ color: oklch(42.1% 0.170 269.0);
Tailwind
colors: {
  custom: {
    50: '#7773c3',
    500: '#2a3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fa8;
$custom-light: #7773c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fa8",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 230,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42116,
    "c": 0.16964,
    "h": 269
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#2A3FA8
secondary
#C3B46B
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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