#2B2FA5#2B2FA5

#2B2FA5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.184 H 272.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2B2FA5
RGBrgb(43, 47, 165)
HSLhsl(238, 59%, 41%)
HSVhsv(238, 74%, 65%)
CMYKcmyk(73.9%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.47, 38.85, -63.53)
CIE-LCHlch(27.47, 74.47, 301.44°)
OKLaboklab(39.1% 0.0082 -0.1838)
OKLCHoklch(39.1% 0.184 272.5)
XYZxyz(8.8020, 5.2623, 36.1419)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FA5 #A5A12B
analogous
#2B6CA5 #2B2FA5 #642BA5
triadic
#2B2FA5 #A52B2F #2FA52B
tetradic
#2B2FA5 #A52B6C #A5A12B #2BA564
square
#2B2FA5 #A52B6C #A5A12B #2BA564
split-complementary
#2B2FA5 #A5642B #6CA52B
monochromatic
#121344 #1E2174 #2B2FA5 #4045CD #7174DA

Accessibility & contrast

On white

10.23
#2B2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2B2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FA5
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FA5#FFFFFF#000000##FFFFFF
##2B2FA51.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b2fa5;
/* rgb */ color: rgb(43, 47, 165);
/* oklch */ color: oklch(39.1% 0.184 272.5);
Tailwind
colors: {
  custom: {
    50: '#7868c1',
    500: '#2b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fa5;
$custom-light: #7868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fa5",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 238.033,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39095,
    "c": 0.18397,
    "h": 272.5
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#2B2FA5
secondary
#C1BE6B
accent
#DD46E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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