#2A2E9C#2A2E9C

#2A2E9C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.174 H 272.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2A2E9C
RGBrgb(42, 46, 156)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 73%, 61%)
CMYKcmyk(73.1%, 70.5%, 0%, 38.8%)
CIE-LABlab(26.29, 36.20, -60.01)
CIE-LCHlch(26.29, 70.08, 301.10°)
OKLaboklab(37.96% 0.0088 -0.1735)
OKLCHoklch(37.96% 0.174 272.9)
XYZxyz(7.9306, 4.8457, 31.9634)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E9C #9C982A
analogous
#2A679C #2A2E9C #5F2A9C
triadic
#2A2E9C #9C2A2E #2E9C2A
tetradic
#2A2E9C #9C2A67 #9C982A #2A9C5F
square
#2A2E9C #9C2A67 #9C982A #2A9C5F
split-complementary
#2A2E9C #9C5F2A #679C2A
monochromatic
#10123C #1D206C #2A2E9C #393ECA #6A6DD7

Accessibility & contrast

On white

10.66
#2A2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E9C
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E9C#FFFFFF#000000##FFFFFF
##2A2E9C1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2e9c;
/* rgb */ color: rgb(42, 46, 156);
/* oklch */ color: oklch(38.0% 0.174 272.9);
Tailwind
colors: {
  custom: {
    50: '#7567ba',
    500: '#2a2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e9c;
$custom-light: #7567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e9c",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 237.895,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.17376,
    "h": 272.9
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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