#2A267C#2A267C

#2A267C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.140 H 277.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2A267C
RGBrgb(42, 38, 124)
HSLhsl(243, 53%, 32%)
HSVhsv(243, 69%, 49%)
CMYKcmyk(66.1%, 69.4%, 0%, 51.4%)
CIE-LABlab(21.33, 29.93, -48.23)
CIE-LCHlch(21.33, 56.76, 301.82°)
OKLaboklab(33.44% 0.0188 -0.1391)
OKLCHoklch(33.44% 0.14 277.7)
XYZxyz(5.2849, 3.3333, 19.4298)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267C #787C26
analogous
#264D7C #2A267C #55267C
triadic
#2A267C #7C2A26 #267C2A
tetradic
#2A267C #7C264D #787C26 #267C55
square
#2A267C #7C264D #787C26 #267C55
split-complementary
#2A267C #7C5526 #4D7C26
monochromatic
#0A091E #1A184D #2A267C #3A34AB #5852CA

Accessibility & contrast

On white

12.60
#2A267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A267C
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267C#FFFFFF#000000##FFFFFF
##2A267C1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a267c;
/* rgb */ color: rgb(42, 38, 124);
/* oklch */ color: oklch(33.4% 0.140 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f61a3',
    500: '#2a267c',
    950: '#000000',
  },
}
SCSS
$custom: #2a267c;
$custom-light: #6f61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267c",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 242.791,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.14036,
    "h": 277.7
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#2A267C
secondary
#AAAE50
accent
#DC4BD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A267C

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

Preview Lab → · Contrast checker → · Palette generator →

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