#2B2F99#2B2F99

#2B2F99 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.168 H 273.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2B2F99
RGBrgb(43, 47, 153)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 60%)
CMYKcmyk(71.9%, 69.3%, 0%, 40%)
CIE-LABlab(26.29, 34.63, -58.17)
CIE-LCHlch(26.29, 67.70, 300.76°)
OKLaboklab(37.89% 0.0098 -0.1681)
OKLCHoklch(37.89% 0.168 273.3)
XYZxyz(7.7606, 4.8458, 30.6572)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F99 #99952B
analogous
#2B6699 #2B2F99 #5E2B99
triadic
#2B2F99 #992B2F #2F992B
tetradic
#2B2F99 #992B66 #99952B #2B995E
square
#2B2F99 #992B66 #99952B #2B995E
split-complementary
#2B2F99 #995E2B #66992B
monochromatic
#101239 #1E2069 #2B2F99 #3A3FC8 #696DD5

Accessibility & contrast

On white

10.66
#2B2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F99
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F99#FFFFFF#000000##FFFFFF
##2B2F991.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2f99;
/* rgb */ color: rgb(43, 47, 153);
/* oklch */ color: oklch(37.9% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#7568b8',
    500: '#2b2f99',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f99;
$custom-light: #7568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f99",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 237.818,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37889,
    "c": 0.16842,
    "h": 273.3
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#2B2F99
secondary
#BCB864
accent
#DA48DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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