#2B41A3#2B41A3

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

Color values

HEX#2B41A3
RGBrgb(43, 65, 163)
HSLhsl(229, 58%, 40%)
HSVhsv(229, 74%, 64%)
CMYKcmyk(73.6%, 60.1%, 0%, 36.1%)
CIE-LABlab(31.66, 26.55, -55.45)
CIE-LCHlch(31.66, 61.48, 295.59°)
OKLaboklab(42.11% -0.0034 -0.16)
OKLCHoklch(42.11% 0.16 268.8)
XYZxyz(9.4951, 6.9375, 35.4819)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B41A3 #A38D2B
analogous
#2B7DA3 #2B41A3 #512BA3
triadic
#2B41A3 #A32B41 #41A32B
tetradic
#2B41A3 #A32B7D #A38D2B #2BA351
square
#2B41A3 #A32B7D #A38D2B #2BA351
split-complementary
#2B41A3 #A3512B #7DA32B
monochromatic
#111A42 #1E2E73 #2B41A3 #3F59CC #6F83D9

Accessibility & contrast

On white

8.79
#2B41A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2B41A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B41A3
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B41A3#FFFFFF#000000##FFFFFF
##2B41A31.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b41a3;
/* rgb */ color: rgb(43, 65, 163);
/* oklch */ color: oklch(42.1% 0.160 268.8);
Tailwind
colors: {
  custom: {
    50: '#7675bf',
    500: '#2b41a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b41a3;
$custom-light: #7675bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b41a3",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 229,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.16007,
    "h": 268.8
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#2B41A3
secondary
#C0B06A
accent
#C546E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B41A3

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

Preview Lab → · Contrast checker → · Palette generator →

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