#2B277D#2B277D

#2B277D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.140 H 277.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2B277D
RGBrgb(43, 39, 125)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 69%, 49%)
CMYKcmyk(65.6%, 68.8%, 0%, 51%)
CIE-LABlab(21.74, 29.79, -48.19)
CIE-LCHlch(21.74, 56.65, 301.72°)
OKLaboklab(33.78% 0.0192 -0.1389)
OKLCHoklch(33.78% 0.14 277.8)
XYZxyz(5.4223, 3.4449, 19.7772)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277D #797D27
analogous
#274E7D #2B277D #56277D
triadic
#2B277D #7D2B27 #277D2B
tetradic
#2B277D #7D274E #797D27 #277D56
square
#2B277D #7D274E #797D27 #277D56
split-complementary
#2B277D #7D5627 #4E7D27
monochromatic
#0B0A20 #1B184E #2B277D #3B36AC #5A55CA

Accessibility & contrast

On white

12.43
#2B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B277D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277D#FFFFFF#000000##FFFFFF
##2B277D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b277d;
/* rgb */ color: rgb(43, 39, 125);
/* oklch */ color: oklch(33.8% 0.140 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f62a3',
    500: '#2b277d',
    950: '#000000',
  },
}
SCSS
$custom: #2b277d;
$custom-light: #6f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277d",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 242.791,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.14025,
    "h": 277.8
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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