#2B40C7#2B40C7

#2B40C7 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.2% C 0.208 H 268.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2B40C7
RGBrgb(43, 64, 199)
HSLhsl(232, 64%, 47%)
HSVhsv(232, 78%, 78%)
CMYKcmyk(78.4%, 67.8%, 0%, 22%)
CIE-LABlab(34.60, 40.38, -71.97)
CIE-LCHlch(34.60, 82.52, 299.30°)
OKLaboklab(45.25% -0.0043 -0.2084)
OKLCHoklch(45.25% 0.208 268.8)
XYZxyz(13.1349, 8.3024, 54.9320)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40C7 #C7B22B
analogous
#2B8EC7 #2B40C7 #642BC7
triadic
#2B40C7 #C72B40 #40C72B
tetradic
#2B40C7 #C72B8E #C7B22B #2BC764
square
#2B40C7 #C72B8E #C7B22B #2BC764
split-complementary
#2B40C7 #C7642B #8EC72B
monochromatic
#152062 #203095 #2B40C7 #5567DA #8794E5

Accessibility & contrast

On white

7.89
#2B40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2B40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40C7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40C7#FFFFFF#000000##FFFFFF
##2B40C71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b40c7;
/* rgb */ color: rgb(43, 64, 199);
/* oklch */ color: oklch(45.2% 0.208 268.8);
Tailwind
colors: {
  custom: {
    50: '#7e75d9',
    500: '#2b40c7',
    950: '#000000',
  },
}
SCSS
$custom: #2b40c7;
$custom-light: #7e75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40c7",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 231.923,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45249,
    "c": 0.20843,
    "h": 268.8
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#2B40C7
secondary
#CFC47F
accent
#D140E7
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2B40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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