#2A40BF#2A40BF

#2A40BF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.199 H 268.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2A40BF
RGBrgb(42, 64, 191)
HSLhsl(231, 64%, 46%)
HSVhsv(231, 78%, 75%)
CMYKcmyk(78%, 66.5%, 0%, 25.1%)
CIE-LABlab(33.81, 37.43, -68.58)
CIE-LCHlch(33.81, 78.13, 298.62°)
OKLaboklab(44.43% -0.0046 -0.1985)
OKLCHoklch(44.43% 0.199 268.7)
XYZxyz(12.1890, 7.9192, 50.1663)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40BF #BFA92A
analogous
#2A8ABF #2A40BF #5E2ABF
triadic
#2A40BF #BF2A40 #40BF2A
tetradic
#2A40BF #BF2A8A #BFA92A #2ABF5E
square
#2A40BF #BF2A8A #BFA92A #2ABF5E
split-complementary
#2A40BF #BF5E2A #8ABF2A
monochromatic
#141E5B #1F2F8D #2A40BF #4E62D8 #808FE3

Accessibility & contrast

On white

8.13
#2A40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2A40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40BF
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40BF#FFFFFF#000000##FFFFFF
##2A40BF1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a40bf;
/* rgb */ color: rgb(42, 64, 191);
/* oklch */ color: oklch(44.4% 0.199 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c75d3',
    500: '#2a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #2a40bf;
$custom-light: #7c75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40bf",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 231.141,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.19859,
    "h": 268.7
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#2A40BF
secondary
#CCC079
accent
#CE41E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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