#2A267F#2A267F

#2A267F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.144 H 277.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2A267F
RGBrgb(42, 38, 127)
HSLhsl(243, 54%, 32%)
HSVhsv(243, 70%, 50%)
CMYKcmyk(66.9%, 70.1%, 0%, 50.2%)
CIE-LABlab(21.62, 30.99, -49.67)
CIE-LCHlch(21.62, 58.54, 301.96°)
OKLaboklab(33.73% 0.0184 -0.1433)
OKLCHoklch(33.73% 0.144 277.3)
XYZxyz(5.4775, 3.4103, 20.4442)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267F #7B7F26
analogous
#264E7F #2A267F #57267F
triadic
#2A267F #7F2A26 #267F2A
tetradic
#2A267F #7F264E #7B7F26 #267F57
square
#2A267F #7F264E #7B7F26 #267F57
split-complementary
#2A267F #7F5726 #4E7F26
monochromatic
#0B0A21 #1A1850 #2A267F #3A34AE #5954CC

Accessibility & contrast

On white

12.48
#2A267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A267F
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267F#FFFFFF#000000##FFFFFF
##2A267F1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a267f;
/* rgb */ color: rgb(42, 38, 127);
/* oklch */ color: oklch(33.7% 0.144 277.3);
Tailwind
colors: {
  custom: {
    50: '#6f61a5',
    500: '#2a267f',
    950: '#000000',
  },
}
SCSS
$custom: #2a267f;
$custom-light: #6f61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267f",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 242.697,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.14447,
    "h": 277.3
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#2A267F
secondary
#ACB051
accent
#DD4AD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A267F

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

Preview Lab → · Contrast checker → · Palette generator →

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