#2A2695#2A2695

#2A2695 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.173 H 274.8°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2695
RGBrgb(42, 38, 149)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 58%)
CMYKcmyk(71.8%, 74.5%, 0%, 41.6%)
CIE-LABlab(23.83, 38.61, -59.77)
CIE-LCHlch(23.83, 71.16, 302.87°)
OKLaboklab(35.98% 0.0147 -0.1728)
OKLCHoklch(35.98% 0.173 274.8)
XYZxyz(7.0710, 4.0477, 28.8366)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2695 #919526
analogous
#265A95 #2A2695 #622695
triadic
#2A2695 #952A26 #26952A
tetradic
#2A2695 #95265A #919526 #269562
square
#2A2695 #95265A #919526 #269562
split-complementary
#2A2695 #956226 #5A9526
monochromatic
#0F0D33 #1C1A64 #2A2695 #3832C6 #635FD6

Accessibility & contrast

On white

11.60
#2A2695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2695
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2695#FFFFFF#000000##FFFFFF
##2A26951.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2695;
/* rgb */ color: rgb(42, 38, 149);
/* oklch */ color: oklch(36.0% 0.173 274.8);
Tailwind
colors: {
  custom: {
    50: '#7462b5',
    500: '#2a2695',
    950: '#000000',
  },
}
SCSS
$custom: #2a2695;
$custom-light: #7462b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2695",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 242.162,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35984,
    "c": 0.17343,
    "h": 274.8
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#2A2695
secondary
#B8BB5B
accent
#E345DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2695

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

Preview Lab → · Contrast checker → · Palette generator →

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