#2A2D95#2A2D95

#2A2D95 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.166 H 273.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2A2D95
RGBrgb(42, 45, 149)
HSLhsl(238, 56%, 37%)
HSVhsv(238, 72%, 58%)
CMYKcmyk(71.8%, 69.8%, 0%, 41.6%)
CIE-LABlab(25.38, 34.35, -57.22)
CIE-LCHlch(25.38, 66.74, 300.97°)
OKLaboklab(37.09% 0.0104 -0.1654)
OKLCHoklch(37.09% 0.166 273.6)
XYZxyz(7.3162, 4.5382, 28.9183)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D95 #95922A
analogous
#2A6295 #2A2D95 #5D2A95
triadic
#2A2D95 #952A2D #2D952A
tetradic
#2A2D95 #952A62 #95922A #2A955D
square
#2A2D95 #952A62 #95922A #2A955D
split-complementary
#2A2D95 #955D2A #62952A
monochromatic
#0F1036 #1D1F65 #2A2D95 #373BC5 #6669D4

Accessibility & contrast

On white

11.01
#2A2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D95
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D95#FFFFFF#000000##FFFFFF
##2A2D951.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2d95;
/* rgb */ color: rgb(42, 45, 149);
/* oklch */ color: oklch(37.1% 0.166 273.6);
Tailwind
colors: {
  custom: {
    50: '#7466b5',
    500: '#2a2d95',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d95;
$custom-light: #7466b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d95",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 238.318,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.16571,
    "h": 273.6
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#2A2D95
secondary
#BAB761
accent
#DB48DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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