#2A269E#2A269E

#2A269E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.185 H 274.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2A269E
RGBrgb(42, 38, 158)
HSLhsl(242, 61%, 38%)
HSVhsv(242, 76%, 62%)
CMYKcmyk(73.4%, 75.9%, 0%, 38%)
CIE-LABlab(24.78, 41.65, -63.71)
CIE-LCHlch(24.78, 76.11, 303.17°)
OKLaboklab(36.95% 0.0129 -0.1843)
OKLCHoklch(36.95% 0.185 274)
XYZxyz(7.8175, 4.3463, 32.7681)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A269E #9A9E26
analogous
#265E9E #2A269E #66269E
triadic
#2A269E #9E2A26 #269E2A
tetradic
#2A269E #9E265E #9A9E26 #269E66
square
#2A269E #9E265E #9A9E26 #269E66
split-complementary
#2A269E #9E6626 #5E9E26
monochromatic
#100E3B #1D1A6D #2A269E #3833CE #6865DA

Accessibility & contrast

On white

11.23
#2A269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A269E
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A269E#FFFFFF#000000##FFFFFF
##2A269E1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a269e;
/* rgb */ color: rgb(42, 38, 158);
/* oklch */ color: oklch(36.9% 0.185 274.0);
Tailwind
colors: {
  custom: {
    50: '#7662bc',
    500: '#2a269e',
    950: '#000000',
  },
}
SCSS
$custom: #2a269e;
$custom-light: #7662bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a269e",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 242,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36947,
    "c": 0.18474,
    "h": 274
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#2A269E
secondary
#BCC060
accent
#E443DF
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A269E

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

Preview Lab → · Contrast checker → · Palette generator →

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