#2A267B#2A267B

#2A267B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.139 H 277.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2A267B
RGBrgb(42, 38, 123)
HSLhsl(243, 53%, 32%)
HSVhsv(243, 69%, 48%)
CMYKcmyk(65.9%, 69.1%, 0%, 51.8%)
CIE-LABlab(21.24, 29.57, -47.75)
CIE-LCHlch(21.24, 56.17, 301.77°)
OKLaboklab(33.34% 0.0189 -0.1377)
OKLCHoklch(33.34% 0.139 277.8)
XYZxyz(5.2220, 3.3081, 19.0984)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267B #777B26
analogous
#264D7B #2A267B #55267B
triadic
#2A267B #7B2A26 #267B2A
tetradic
#2A267B #7B264D #777B26 #267B55
square
#2A267B #7B264D #777B26 #267B55
split-complementary
#2A267B #7B5526 #4D7B26
monochromatic
#0A091D #1A184C #2A267B #3A34AA #5852CA

Accessibility & contrast

On white

12.64
#2A267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A267B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267B#FFFFFF#000000##FFFFFF
##2A267B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a267b;
/* rgb */ color: rgb(42, 38, 123);
/* oklch */ color: oklch(33.3% 0.139 277.8);
Tailwind
colors: {
  custom: {
    50: '#6e61a2',
    500: '#2a267b',
    950: '#000000',
  },
}
SCSS
$custom: #2a267b;
$custom-light: #6e61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267b",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 242.824,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.13898,
    "h": 277.8
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#2A267B
secondary
#A9AD50
accent
#DC4CD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A267B

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

Preview Lab → · Contrast checker → · Palette generator →

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