#2B40C0#2B40C0

#2B40C0 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.200 H 268.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2B40C0
RGBrgb(43, 64, 192)
HSLhsl(232, 63%, 46%)
HSVhsv(232, 78%, 75%)
CMYKcmyk(77.6%, 66.7%, 0%, 24.7%)
CIE-LABlab(33.95, 37.88, -68.94)
CIE-LCHlch(33.95, 78.67, 298.78°)
OKLaboklab(44.57% -0.0037 -0.1996)
OKLCHoklch(44.57% 0.2 268.9)
XYZxyz(12.3408, 7.9848, 50.7498)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40C0 #C0AB2B
analogous
#2B8AC0 #2B40C0 #612BC0
triadic
#2B40C0 #C02B40 #40C02B
tetradic
#2B40C0 #C02B8A #C0AB2B #2BC061
square
#2B40C0 #C02B8A #C0AB2B #2BC061
split-complementary
#2B40C0 #C0612B #8AC02B
monochromatic
#151F5C #202F8E #2B40C0 #5063D8 #8290E3

Accessibility & contrast

On white

8.09
#2B40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2B40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40C0
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40C0#FFFFFF#000000##FFFFFF
##2B40C01.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b40c0;
/* rgb */ color: rgb(43, 64, 192);
/* oklch */ color: oklch(44.6% 0.200 268.9);
Tailwind
colors: {
  custom: {
    50: '#7d75d4',
    500: '#2b40c0',
    950: '#000000',
  },
}
SCSS
$custom: #2b40c0;
$custom-light: #7d75d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40c0",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 231.544,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.19961,
    "h": 268.9
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#2B40C0
secondary
#CCC17B
accent
#CF41E6
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2B40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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