#2A2D91#2A2D91

#2A2D91 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.160 H 273.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2A2D91
RGBrgb(42, 45, 145)
HSLhsl(238, 55%, 37%)
HSVhsv(238, 71%, 57%)
CMYKcmyk(71%, 69%, 0%, 43.1%)
CIE-LABlab(24.99, 32.92, -55.39)
CIE-LCHlch(24.99, 64.43, 300.73°)
OKLaboklab(36.7% 0.0109 -0.16)
OKLCHoklch(36.7% 0.16 273.9)
XYZxyz(7.0024, 4.4127, 27.2653)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D91 #918E2A
analogous
#2A6191 #2A2D91 #5B2A91
triadic
#2A2D91 #912A2D #2D912A
tetradic
#2A2D91 #912A61 #918E2A #2A915B
square
#2A2D91 #912A61 #918E2A #2A915B
split-complementary
#2A2D91 #915B2A #61912A
monochromatic
#0F1032 #1C1E62 #2A2D91 #383CC0 #6367D2

Accessibility & contrast

On white

11.15
#2A2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A2D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D91
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D91#FFFFFF#000000##FFFFFF
##2A2D911.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2d91;
/* rgb */ color: rgb(42, 45, 145);
/* oklch */ color: oklch(36.7% 0.160 273.9);
Tailwind
colors: {
  custom: {
    50: '#7366b2',
    500: '#2a2d91',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d91;
$custom-light: #7366b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d91",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 238.252,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36698,
    "c": 0.1604,
    "h": 273.9
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#2A2D91
secondary
#B8B55F
accent
#DA49DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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