#2B2FA3#2B2FA3

#2B2FA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.181 H 272.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2B2FA3
RGBrgb(43, 47, 163)
HSLhsl(238, 58%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(73.6%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.27, 38.15, -62.65)
CIE-LCHlch(27.27, 73.35, 301.34°)
OKLaboklab(38.89% 0.0085 -0.1812)
OKLCHoklch(38.89% 0.181 272.7)
XYZxyz(8.6214, 5.1901, 35.1907)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FA3 #A39F2B
analogous
#2B6BA3 #2B2FA3 #632BA3
triadic
#2B2FA3 #A32B2F #2FA32B
tetradic
#2B2FA3 #A32B6B #A39F2B #2BA363
square
#2B2FA3 #A32B6B #A39F2B #2BA363
split-complementary
#2B2FA3 #A3632B #6BA32B
monochromatic
#111342 #1E2173 #2B2FA3 #3F44CC #6F73D9

Accessibility & contrast

On white

10.30
#2B2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FA3
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FA3#FFFFFF#000000##FFFFFF
##2B2FA31.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b2fa3;
/* rgb */ color: rgb(43, 47, 163);
/* oklch */ color: oklch(38.9% 0.181 272.7);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2b2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fa3;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fa3",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 238,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38891,
    "c": 0.18142,
    "h": 272.7
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#2B2FA3
secondary
#C0BD6A
accent
#DC46E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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