#2A2E8E#2A2E8E

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

Color values

HEX#2A2E8E
RGBrgb(42, 46, 142)
HSLhsl(238, 54%, 36%)
HSVhsv(238, 70%, 56%)
CMYKcmyk(70.4%, 67.6%, 0%, 44.3%)
CIE-LABlab(24.95, 31.20, -53.60)
CIE-LCHlch(24.95, 62.02, 300.20°)
OKLaboklab(36.58% 0.0105 -0.1548)
OKLCHoklch(36.58% 0.155 273.9)
XYZxyz(6.8127, 4.3986, 26.0759)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E8E #8E8A2A
analogous
#2A608E #2A2E8E #582A8E
triadic
#2A2E8E #8E2A2E #2E8E2A
tetradic
#2A2E8E #8E2A60 #8E8A2A #2A8E58
square
#2A2E8E #8E2A60 #8E8A2A #2A8E58
split-complementary
#2A2E8E #8E582A #608E2A
monochromatic
#0E0F30 #1C1F5F #2A2E8E #383DBD #6266D1

Accessibility & contrast

On white

11.17
#2A2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2E8E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E8E#FFFFFF#000000##FFFFFF
##2A2E8E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2e8e;
/* rgb */ color: rgb(42, 46, 142);
/* oklch */ color: oklch(36.6% 0.155 273.9);
Tailwind
colors: {
  custom: {
    50: '#7267b0',
    500: '#2a2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e8e;
$custom-light: #7267b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e8e",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 237.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36579,
    "c": 0.15515,
    "h": 273.9
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#2A2E8E
secondary
#B6B35D
accent
#D84ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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