#2A267D#2A267D

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

Color values

HEX#2A267D
RGBrgb(42, 38, 125)
HSLhsl(243, 53%, 32%)
HSVhsv(243, 70%, 49%)
CMYKcmyk(66.4%, 69.6%, 0%, 51%)
CIE-LABlab(21.43, 30.28, -48.71)
CIE-LCHlch(21.43, 57.36, 301.86°)
OKLaboklab(33.53% 0.0186 -0.1405)
OKLCHoklch(33.53% 0.142 277.6)
XYZxyz(5.3484, 3.3587, 19.7645)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267D #797D26
analogous
#264D7D #2A267D #56267D
triadic
#2A267D #7D2A26 #267D2A
tetradic
#2A267D #7D264D #797D26 #267D56
square
#2A267D #7D264D #797D26 #267D56
split-complementary
#2A267D #7D5626 #4D7D26
monochromatic
#0A091F #1A184E #2A267D #3A34AC #5853CB

Accessibility & contrast

On white

12.56
#2A267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A267D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267D#FFFFFF#000000##FFFFFF
##2A267D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a267d;
/* rgb */ color: rgb(42, 38, 125);
/* oklch */ color: oklch(33.5% 0.142 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f61a3',
    500: '#2a267d',
    950: '#000000',
  },
}
SCSS
$custom: #2a267d;
$custom-light: #6f61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267d",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 242.759,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33534,
    "c": 0.14173,
    "h": 277.6
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2A267D
secondary
#ABAF50
accent
#DD4BD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A267D

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

Preview Lab → · Contrast checker → · Palette generator →

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