#2A2C9F#2A2C9F

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

Color values

HEX#2A2C9F
RGBrgb(42, 44, 159)
HSLhsl(239, 58%, 39%)
HSVhsv(239, 74%, 62%)
CMYKcmyk(73.6%, 72.3%, 0%, 37.6%)
CIE-LABlab(26.15, 38.47, -62.07)
CIE-LCHlch(26.15, 73.03, 301.79°)
OKLaboklab(37.95% 0.0096 -0.1796)
OKLCHoklch(37.95% 0.18 273)
XYZxyz(8.1114, 4.7960, 33.2924)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C9F #9F9D2A
analogous
#2A679F #2A2C9F #622A9F
triadic
#2A2C9F #9F2A2C #2C9F2A
tetradic
#2A2C9F #9F2A67 #9F9D2A #2A9F62
square
#2A2C9F #9F2A67 #9F9D2A #2A9F62
split-complementary
#2A2C9F #9F622A #679F2A
monochromatic
#10113E #1D1F6F #2A2C9F #3B3DCB #6B6DD8

Accessibility & contrast

On white

10.72
#2A2C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2C9F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C9F#FFFFFF#000000##FFFFFF
##2A2C9F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2c9f;
/* rgb */ color: rgb(42, 44, 159);
/* oklch */ color: oklch(37.9% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#7666bd',
    500: '#2a2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c9f;
$custom-light: #7666bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c9f",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 238.974,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37947,
    "c": 0.17981,
    "h": 273
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#2A2C9F
secondary
#BFBD66
accent
#DF46E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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