#2A2689#2A2689

#2A2689 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.158 H 276.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2A2689
RGBrgb(42, 38, 137)
HSLhsl(242, 57%, 34%)
HSVhsv(242, 72%, 54%)
CMYKcmyk(69.3%, 72.3%, 0%, 46.3%)
CIE-LABlab(22.60, 34.49, -54.35)
CIE-LCHlch(22.60, 64.36, 302.40°)
OKLaboklab(34.74% 0.0168 -0.157)
OKLCHoklch(34.74% 0.158 276.1)
XYZxyz(6.1618, 3.6841, 24.0484)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2689 #858926
analogous
#265489 #2A2689 #5C2689
triadic
#2A2689 #892A26 #26892A
tetradic
#2A2689 #892654 #858926 #26895C
square
#2A2689 #892654 #858926 #26895C
split-complementary
#2A2689 #895C26 #548926
monochromatic
#0D0B29 #1B1959 #2A2689 #3933B9 #5D59D1

Accessibility & contrast

On white

12.09
#2A2689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2689
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2689#FFFFFF#000000##FFFFFF
##2A26891.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2689;
/* rgb */ color: rgb(42, 38, 137);
/* oklch */ color: oklch(34.7% 0.158 276.1);
Tailwind
colors: {
  custom: {
    50: '#7261ac',
    500: '#2a2689',
    950: '#000000',
  },
}
SCSS
$custom: #2a2689;
$custom-light: #7261ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2689",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 242.424,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.15789,
    "h": 276.1
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#2A2689
secondary
#B2B655
accent
#E048DA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2689

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

Preview Lab → · Contrast checker → · Palette generator →

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