#2B2FA8#2B2FA8

#2B2FA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.188 H 272.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2B2FA8
RGBrgb(43, 47, 168)
HSLhsl(238, 59%, 41%)
HSVhsv(238, 74%, 66%)
CMYKcmyk(74.4%, 72%, 0%, 34.1%)
CIE-LABlab(27.77, 39.89, -64.84)
CIE-LCHlch(27.77, 76.13, 301.60°)
OKLaboklab(39.4% 0.0078 -0.1876)
OKLCHoklch(39.4% 0.188 272.4)
XYZxyz(9.0783, 5.3728, 37.5968)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FA8 #A8A42B
analogous
#2B6EA8 #2B2FA8 #662BA8
triadic
#2B2FA8 #A82B2F #2FA82B
tetradic
#2B2FA8 #A82B6E #A8A42B #2BA866
square
#2B2FA8 #A82B6E #A8A42B #2BA866
split-complementary
#2B2FA8 #A8662B #6EA82B
monochromatic
#121447 #1F2177 #2B2FA8 #4246CF #7276DB

Accessibility & contrast

On white

10.12
#2B2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2FA8
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FA8#FFFFFF#000000##FFFFFF
##2B2FA81.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b2fa8;
/* rgb */ color: rgb(43, 47, 168);
/* oklch */ color: oklch(39.4% 0.188 272.4);
Tailwind
colors: {
  custom: {
    50: '#7868c3',
    500: '#2b2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fa8;
$custom-light: #7868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fa8",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 238.08,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39402,
    "c": 0.18778,
    "h": 272.4
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#2B2FA8
secondary
#C2C06C
accent
#DD45E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2B2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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