#2B277C#2B277C

#2B277C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.139 H 278.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2B277C
RGBrgb(43, 39, 124)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 69%, 49%)
CMYKcmyk(65.3%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.65, 29.44, -47.71)
CIE-LCHlch(21.65, 56.06, 301.67°)
OKLaboklab(33.69% 0.0193 -0.1375)
OKLCHoklch(33.69% 0.139 278)
XYZxyz(5.3587, 3.4194, 19.4425)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277C #787C27
analogous
#274D7C #2B277C #56277C
triadic
#2B277C #7C2B27 #277C2B
tetradic
#2B277C #7C274D #787C27 #277C56
square
#2B277C #7C274D #787C27 #277C56
split-complementary
#2B277C #7C5627 #4D7C27
monochromatic
#0B0A1F #1B184D #2B277C #3B36AB #5A54C9

Accessibility & contrast

On white

12.47
#2B277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B277C
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277C#FFFFFF#000000##FFFFFF
##2B277C1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b277c;
/* rgb */ color: rgb(43, 39, 124);
/* oklch */ color: oklch(33.7% 0.139 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f62a3',
    500: '#2b277c',
    950: '#000000',
  },
}
SCSS
$custom: #2b277c;
$custom-light: #6f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277c",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 242.824,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.13887,
    "h": 278
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#2B277C
secondary
#AAAE51
accent
#DC4CD5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B277C

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

Preview Lab → · Contrast checker → · Palette generator →

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