#2B277A#2B277A

#2B277A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.136 H 278.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2B277A
RGBrgb(43, 39, 122)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 68%, 48%)
CMYKcmyk(64.8%, 68%, 0%, 52.2%)
CIE-LABlab(21.47, 28.73, -46.74)
CIE-LCHlch(21.47, 54.86, 301.58°)
OKLaboklab(33.5% 0.0195 -0.1347)
OKLCHoklch(33.5% 0.136 278.2)
XYZxyz(5.2335, 3.3694, 18.7831)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B277A #767A27
analogous
#274D7A #2B277A #55277A
triadic
#2B277A #7A2B27 #277A2B
tetradic
#2B277A #7A274D #767A27 #277A55
square
#2B277A #7A274D #767A27 #277A55
split-complementary
#2B277A #7A5527 #4D7A27
monochromatic
#0A091D #1B184C #2B277A #3B36A8 #5953C8

Accessibility & contrast

On white

12.54
#2B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B277A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B277A#FFFFFF#000000##FFFFFF
##2B277A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b277a;
/* rgb */ color: rgb(43, 39, 122);
/* oklch */ color: oklch(33.5% 0.136 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f61a1',
    500: '#2b277a',
    950: '#000000',
  },
}
SCSS
$custom: #2b277a;
$custom-light: #6f61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b277a",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 242.892,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.13609,
    "h": 278.2
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#2B277A
secondary
#A8AC51
accent
#DB4DD4
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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