#2A269A#2A269A

#2A269A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.180 H 274.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2A269A
RGBrgb(42, 38, 154)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 60%)
CMYKcmyk(72.7%, 75.3%, 0%, 39.6%)
CIE-LABlab(24.36, 40.31, -61.97)
CIE-LCHlch(24.36, 73.92, 303.04°)
OKLaboklab(36.52% 0.0137 -0.1792)
OKLCHoklch(36.52% 0.18 274.4)
XYZxyz(7.4788, 4.2108, 30.9842)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A269A #969A26
analogous
#265C9A #2A269A #64269A
triadic
#2A269A #9A2A26 #269A2A
tetradic
#2A269A #9A265C #969A26 #269A64
square
#2A269A #9A265C #969A26 #269A64
split-complementary
#2A269A #9A6426 #5C9A26
monochromatic
#0F0E38 #1D1A69 #2A269A #3732CB #6662D8

Accessibility & contrast

On white

11.40
#2A269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A269A
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A269A#FFFFFF#000000##FFFFFF
##2A269A1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a269a;
/* rgb */ color: rgb(42, 38, 154);
/* oklch */ color: oklch(36.5% 0.180 274.4);
Tailwind
colors: {
  custom: {
    50: '#7662b9',
    500: '#2a269a',
    950: '#000000',
  },
}
SCSS
$custom: #2a269a;
$custom-light: #7662b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a269a",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 242.069,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36517,
    "c": 0.17974,
    "h": 274.4
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#2A269A
secondary
#BABE5E
accent
#E444DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A269A

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

Preview Lab → · Contrast checker → · Palette generator →

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