#2B2FA7#2B2FA7

#2B2FA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.187 H 272.4°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2B2FA7
RGBrgb(43, 47, 167)
HSLhsl(238, 59%, 41%)
HSVhsv(238, 74%, 65%)
CMYKcmyk(74.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.67, 39.54, -64.41)
CIE-LCHlch(27.67, 75.58, 301.55°)
OKLaboklab(39.3% 0.0079 -0.1863)
OKLCHoklch(39.3% 0.187 272.4)
XYZxyz(8.9855, 5.3357, 37.1081)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FA7 #A7A32B
analogous
#2B6DA7 #2B2FA7 #652BA7
triadic
#2B2FA7 #A72B2F #2FA72B
tetradic
#2B2FA7 #A72B6D #A7A32B #2BA765
square
#2B2FA7 #A72B6D #A7A32B #2BA765
split-complementary
#2B2FA7 #A7652B #6DA72B
monochromatic
#121446 #1E2176 #2B2FA7 #4146CE #7275DB

Accessibility & contrast

On white

10.16
#2B2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2B2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FA7
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FA7#FFFFFF#000000##FFFFFF
##2B2FA71.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b2fa7;
/* rgb */ color: rgb(43, 47, 167);
/* oklch */ color: oklch(39.3% 0.187 272.4);
Tailwind
colors: {
  custom: {
    50: '#7868c2',
    500: '#2b2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fa7;
$custom-light: #7868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fa7",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 238.065,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.393,
    "c": 0.18652,
    "h": 272.4
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#2B2FA7
secondary
#C2BF6C
accent
#DD46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2B2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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