#2A40C5#2A40C5

#2A40C5 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.0% C 0.206 H 268.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2A40C5
RGBrgb(42, 64, 197)
HSLhsl(231, 65%, 47%)
HSVhsv(231, 79%, 77%)
CMYKcmyk(78.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(34.37, 39.58, -71.18)
CIE-LCHlch(34.37, 81.45, 299.08°)
OKLaboklab(45.01% -0.005 -0.2061)
OKLCHoklch(45.01% 0.206 268.6)
XYZxyz(12.8628, 8.1888, 53.7152)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40C5 #C5AF2A
analogous
#2A8EC5 #2A40C5 #622AC5
triadic
#2A40C5 #C52A40 #40C52A
tetradic
#2A40C5 #C52A8E #C5AF2A #2AC562
square
#2A40C5 #C52A8E #C5AF2A #2AC562
split-complementary
#2A40C5 #C5622A #8EC52A
monochromatic
#141F60 #1F3093 #2A40C5 #5265DA #8592E5

Accessibility & contrast

On white

7.96
#2A40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40C5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40C5#FFFFFF#000000##FFFFFF
##2A40C51.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0049C3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a40c5;
/* rgb */ color: rgb(42, 64, 197);
/* oklch */ color: oklch(45.0% 0.206 268.6);
Tailwind
colors: {
  custom: {
    50: '#7e75d8',
    500: '#2a40c5',
    950: '#000000',
  },
}
SCSS
$custom: #2a40c5;
$custom-light: #7e75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40c5",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 231.484,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45011,
    "c": 0.20618,
    "h": 268.6
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#2A40C5
secondary
#CEC37D
accent
#D040E8
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2A40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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