#2B2FA1#2B2FA1

#2B2FA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.179 H 272.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2B2FA1
RGBrgb(43, 47, 161)
HSLhsl(238, 58%, 40%)
HSVhsv(238, 73%, 63%)
CMYKcmyk(73.3%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.07, 37.45, -61.76)
CIE-LCHlch(27.07, 72.23, 301.23°)
OKLaboklab(38.69% 0.0087 -0.1786)
OKLCHoklch(38.69% 0.179 272.8)
XYZxyz(8.4436, 5.1190, 34.2544)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FA1 #A19D2B
analogous
#2B6AA1 #2B2FA1 #622BA1
triadic
#2B2FA1 #A12B2F #2FA12B
tetradic
#2B2FA1 #A12B6A #A19D2B #2BA162
square
#2B2FA1 #A12B6A #A19D2B #2BA162
split-complementary
#2B2FA1 #A1622B #6AA12B
monochromatic
#111340 #1E2171 #2B2FA1 #3E43CB #6E72D8

Accessibility & contrast

On white

10.38
#2B2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2B2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FA1
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FA1#FFFFFF#000000##FFFFFF
##2B2FA11.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b2fa1;
/* rgb */ color: rgb(43, 47, 161);
/* oklch */ color: oklch(38.7% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#7768be',
    500: '#2b2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fa1;
$custom-light: #7768be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fa1",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 237.966,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.17885,
    "h": 272.8
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#2B2FA1
secondary
#BFBC69
accent
#DC47E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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