#2A267E#2A267E

#2A267E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.143 H 277.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2A267E
RGBrgb(42, 38, 126)
HSLhsl(243, 54%, 32%)
HSVhsv(243, 70%, 49%)
CMYKcmyk(66.7%, 69.8%, 0%, 50.6%)
CIE-LABlab(21.52, 30.63, -49.19)
CIE-LCHlch(21.52, 57.95, 301.91°)
OKLaboklab(33.63% 0.0185 -0.1419)
OKLCHoklch(33.63% 0.143 277.4)
XYZxyz(5.4126, 3.3844, 20.1026)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267E #7A7E26
analogous
#264E7E #2A267E #56267E
triadic
#2A267E #7E2A26 #267E2A
tetradic
#2A267E #7E264E #7A7E26 #267E56
square
#2A267E #7E264E #7A7E26 #267E56
split-complementary
#2A267E #7E5626 #4E7E26
monochromatic
#0B0A20 #1A184F #2A267E #3A34AD #5953CB

Accessibility & contrast

On white

12.52
#2A267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A267E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267E#FFFFFF#000000##FFFFFF
##2A267E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a267e;
/* rgb */ color: rgb(42, 38, 126);
/* oklch */ color: oklch(33.6% 0.143 277.4);
Tailwind
colors: {
  custom: {
    50: '#6f61a4',
    500: '#2a267e',
    950: '#000000',
  },
}
SCSS
$custom: #2a267e;
$custom-light: #6f61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267e",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 242.727,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33632,
    "c": 0.1431,
    "h": 277.4
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A267E

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

Preview Lab → · Contrast checker → · Palette generator →

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