#2A2E9B#2A2E9B

#2A2E9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.172 H 273.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2A2E9B
RGBrgb(42, 46, 155)
HSLhsl(238, 57%, 39%)
HSVhsv(238, 73%, 61%)
CMYKcmyk(72.9%, 70.3%, 0%, 39.2%)
CIE-LABlab(26.19, 35.85, -59.56)
CIE-LCHlch(26.19, 69.51, 301.04°)
OKLaboklab(37.86% 0.009 -0.1722)
OKLCHoklch(37.86% 0.172 273)
XYZxyz(7.8463, 4.8120, 31.5193)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E9B #9B972A
analogous
#2A669B #2A2E9B #5E2A9B
triadic
#2A2E9B #9B2A2E #2E9B2A
tetradic
#2A2E9B #9B2A66 #9B972A #2A9B5E
square
#2A2E9B #9B2A66 #9B972A #2A9B5E
split-complementary
#2A2E9B #9B5E2A #669B2A
monochromatic
#10113B #1D206B #2A2E9B #393EC9 #696DD6

Accessibility & contrast

On white

10.70
#2A2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E9B
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E9B#FFFFFF#000000##FFFFFF
##2A2E9B1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2e9b;
/* rgb */ color: rgb(42, 46, 155);
/* oklch */ color: oklch(37.9% 0.172 273.0);
Tailwind
colors: {
  custom: {
    50: '#7567ba',
    500: '#2a2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e9b;
$custom-light: #7567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e9b",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 237.876,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3786,
    "c": 0.17245,
    "h": 273
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#2A2E9B
secondary
#BDBA64
accent
#DB47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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