#2B277B#2B277B

#2B277B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.137 H 278.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2B277B
RGBrgb(43, 39, 123)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 68%, 48%)
CMYKcmyk(65%, 68.3%, 0%, 51.8%)
CIE-LABlab(21.56, 29.08, -47.22)
CIE-LCHlch(21.56, 55.46, 301.63°)
OKLaboklab(33.59% 0.0194 -0.1361)
OKLCHoklch(33.59% 0.137 278.1)
XYZxyz(5.2958, 3.3943, 19.1111)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277B #777B27
analogous
#274D7B #2B277B #55277B
triadic
#2B277B #7B2B27 #277B2B
tetradic
#2B277B #7B274D #777B27 #277B55
square
#2B277B #7B274D #777B27 #277B55
split-complementary
#2B277B #7B5527 #4D7B27
monochromatic
#0B0A1E #1B184D #2B277B #3B36A9 #5954C9

Accessibility & contrast

On white

12.51
#2B277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B277B
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277B#FFFFFF#000000##FFFFFF
##2B277B1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b277b;
/* rgb */ color: rgb(43, 39, 123);
/* oklch */ color: oklch(33.6% 0.137 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f61a2',
    500: '#2b277b',
    950: '#000000',
  },
}
SCSS
$custom: #2b277b;
$custom-light: #6f61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277b",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 242.857,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33592,
    "c": 0.13748,
    "h": 278.1
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#2B277B
secondary
#A9AD51
accent
#DB4CD5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B277B

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

Preview Lab → · Contrast checker → · Palette generator →

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