#2B40A5#2B40A5

#2B40A5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.164 H 269.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2B40A5
RGBrgb(43, 64, 165)
HSLhsl(230, 59%, 41%)
HSVhsv(230, 74%, 65%)
CMYKcmyk(73.9%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.57, 27.97, -56.81)
CIE-LCHlch(31.57, 63.32, 296.21°)
OKLaboklab(42.09% -0.0027 -0.164)
OKLCHoklch(42.09% 0.164 269.1)
XYZxyz(9.6188, 6.8960, 36.4141)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40A5 #A5902B
analogous
#2B7DA5 #2B40A5 #532BA5
triadic
#2B40A5 #A52B40 #40A52B
tetradic
#2B40A5 #A52B7D #A5902B #2BA553
square
#2B40A5 #A52B7D #A5902B #2BA553
split-complementary
#2B40A5 #A5532B #7DA52B
monochromatic
#121A44 #1E2D74 #2B40A5 #4058CD #7183DA

Accessibility & contrast

On white

8.83
#2B40A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2B40A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40A5
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40A5#FFFFFF#000000##FFFFFF
##2B40A51.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b40a5;
/* rgb */ color: rgb(43, 64, 165);
/* oklch */ color: oklch(42.1% 0.164 269.1);
Tailwind
colors: {
  custom: {
    50: '#7674c1',
    500: '#2b40a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b40a5;
$custom-light: #7674c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40a5",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 229.672,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42089,
    "c": 0.16405,
    "h": 269.1
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#2B40A5
secondary
#C1B26B
accent
#C746E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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