#2B277E#2B277E

#2B277E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.142 H 277.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2B277E
RGBrgb(43, 39, 126)
HSLhsl(243, 53%, 32%)
HSVhsv(243, 69%, 49%)
CMYKcmyk(65.9%, 69%, 0%, 50.6%)
CIE-LABlab(21.84, 30.14, -48.67)
CIE-LCHlch(21.84, 57.25, 301.77°)
OKLaboklab(33.88% 0.019 -0.1403)
OKLCHoklch(33.88% 0.142 277.7)
XYZxyz(5.4865, 3.4705, 20.1154)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277E #7A7E27
analogous
#274E7E #2B277E #57277E
triadic
#2B277E #7E2B27 #277E2B
tetradic
#2B277E #7E274E #7A7E27 #277E57
square
#2B277E #7E274E #7A7E27 #277E57
split-complementary
#2B277E #7E5727 #4E7E27
monochromatic
#0B0A21 #1B194F #2B277E #3B35AD #5A55CA

Accessibility & contrast

On white

12.40
#2B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B277E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277E#FFFFFF#000000##FFFFFF
##2B277E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b277e;
/* rgb */ color: rgb(43, 39, 126);
/* oklch */ color: oklch(33.9% 0.142 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f62a4',
    500: '#2b277e',
    950: '#000000',
  },
}
SCSS
$custom: #2b277e;
$custom-light: #6f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277e",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 242.759,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33881,
    "c": 0.14163,
    "h": 277.7
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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