#2B40AA#2B40AA

#2B40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.171 H 269.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2B40AA
RGBrgb(43, 64, 170)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(74.7%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.99, 29.83, -59.12)
CIE-LCHlch(31.99, 66.22, 296.78°)
OKLaboklab(42.53% -0.0027 -0.1708)
OKLCHoklch(42.53% 0.171 269.1)
XYZxyz(10.0829, 7.0816, 38.8579)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40AA #AA952B
analogous
#2B80AA #2B40AA #562BAA
triadic
#2B40AA #AA2B40 #40AA2B
tetradic
#2B40AA #AA2B80 #AA952B #2BAA56
square
#2B40AA #AA2B80 #AA952B #2BAA56
split-complementary
#2B40AA #AA562B #80AA2B
monochromatic
#121B48 #1F2E79 #2B40AA #435ACF #7485DC

Accessibility & contrast

On white

8.69
#2B40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2B40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40AA
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40AA#FFFFFF#000000##FFFFFF
##2B40AA1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b40aa;
/* rgb */ color: rgb(43, 64, 170);
/* oklch */ color: oklch(42.5% 0.171 269.1);
Tailwind
colors: {
  custom: {
    50: '#7774c4',
    500: '#2b40aa',
    950: '#000000',
  },
}
SCSS
$custom: #2b40aa;
$custom-light: #7774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40aa",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 230.079,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42534,
    "c": 0.17083,
    "h": 269.1
  },
  "luminance": 0.07083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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