#2B277F#2B277F

#2B277F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.143 H 277.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2B277F
RGBrgb(43, 39, 127)
HSLhsl(243, 53%, 33%)
HSVhsv(243, 69%, 50%)
CMYKcmyk(66.1%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.93, 30.50, -49.15)
CIE-LCHlch(21.93, 57.84, 301.82°)
OKLaboklab(33.98% 0.0189 -0.1417)
OKLCHoklch(33.98% 0.143 277.6)
XYZxyz(5.5513, 3.4965, 20.4569)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277F #7B7F27
analogous
#274F7F #2B277F #57277F
triadic
#2B277F #7F2B27 #277F2B
tetradic
#2B277F #7F274F #7B7F27 #277F57
square
#2B277F #7F274F #7B7F27 #277F57
split-complementary
#2B277F #7F5727 #4F7F27
monochromatic
#0B0A21 #1B1950 #2B277F #3B35AE #5B55CB

Accessibility & contrast

On white

12.36
#2B277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B277F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277F#FFFFFF#000000##FFFFFF
##2B277F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b277f;
/* rgb */ color: rgb(43, 39, 127);
/* oklch */ color: oklch(34.0% 0.143 277.6);
Tailwind
colors: {
  custom: {
    50: '#7062a5',
    500: '#2b277f',
    950: '#000000',
  },
}
SCSS
$custom: #2b277f;
$custom-light: #7062a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277f",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 242.727,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.143,
    "h": 277.6
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#2B277F
secondary
#ABB052
accent
#DC4BD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B277F

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

Preview Lab → · Contrast checker → · Palette generator →

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