#2A276E#2A276E

#2A276E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.3% C 0.119 H 279.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2A276E
RGBrgb(42, 39, 110)
HSLhsl(243, 48%, 29%)
HSVhsv(243, 65%, 43%)
CMYKcmyk(61.8%, 64.5%, 0%, 56.9%)
CIE-LABlab(20.32, 24.26, -40.92)
CIE-LCHlch(20.32, 47.57, 300.67°)
OKLaboklab(32.31% 0.0192 -0.1176)
OKLCHoklch(32.31% 0.119 279.3)
XYZxyz(4.4939, 3.0687, 15.1043)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A276E #6B6E27
analogous
#27486E #2A276E #4E276E
triadic
#2A276E #6E2A27 #276E2A
tetradic
#2A276E #6E2748 #6B6E27 #276E4E
square
#2A276E #6E2748 #6B6E27 #276E4E
split-complementary
#2A276E #6E4E27 #486E27
monochromatic
#090817 #191741 #2A276E #3B379B #544FC1

Accessibility & contrast

On white

13.01
#2A276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A276E
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A276E#FFFFFF#000000##FFFFFF
##2A276E1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a276e;
/* rgb */ color: rgb(42, 39, 110);
/* oklch */ color: oklch(32.3% 0.119 279.3);
Tailwind
colors: {
  custom: {
    50: '#6b6198',
    500: '#2a276e',
    950: '#000000',
  },
}
SCSS
$custom: #2a276e;
$custom-light: #6b6198;
$custom-dark: #000000;
JSON
{
  "hex": "#2a276e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 242.535,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32305,
    "c": 0.11917,
    "h": 279.3
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#2A276E
secondary
#9DA150
accent
#D751D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A276E

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

Preview Lab → · Contrast checker → · Palette generator →

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