#2A2E9F#2A2E9F

#2A2E9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.178 H 272.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2A2E9F
RGBrgb(42, 46, 159)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 74%, 62%)
CMYKcmyk(73.6%, 71.1%, 0%, 37.6%)
CIE-LABlab(26.59, 37.25, -61.35)
CIE-LCHlch(26.59, 71.77, 301.27°)
OKLaboklab(38.27% 0.0084 -0.1774)
OKLCHoklch(38.27% 0.178 272.7)
XYZxyz(8.1877, 4.9486, 33.3178)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E9F #9F9B2A
analogous
#2A699F #2A2E9F #612A9F
triadic
#2A2E9F #9F2A2E #2E9F2A
tetradic
#2A2E9F #9F2A69 #9F9B2A #2A9F61
square
#2A2E9F #9F2A69 #9F9B2A #2A9F61
split-complementary
#2A2E9F #9F612A #699F2A
monochromatic
#10123E #1D206F #2A2E9F #3B40CB #6B6FD8

Accessibility & contrast

On white

10.55
#2A2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E9F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E9F#FFFFFF#000000##FFFFFF
##2A2E9F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2e9f;
/* rgb */ color: rgb(42, 46, 159);
/* oklch */ color: oklch(38.3% 0.178 272.7);
Tailwind
colors: {
  custom: {
    50: '#7667bc',
    500: '#2a2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e9f;
$custom-light: #7667bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e9f",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 237.949,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38265,
    "c": 0.17764,
    "h": 272.7
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#2A2E9F
secondary
#BFBC66
accent
#DC46E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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