#2A2E9D#2A2E9D

#2A2E9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.175 H 272.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2A2E9D
RGBrgb(42, 46, 157)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 73%, 62%)
CMYKcmyk(73.2%, 70.7%, 0%, 38.4%)
CIE-LABlab(26.39, 36.55, -60.45)
CIE-LCHlch(26.39, 70.65, 301.16°)
OKLaboklab(38.06% 0.0087 -0.1748)
OKLCHoklch(38.06% 0.175 272.8)
XYZxyz(8.0156, 4.8797, 32.4112)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E9D #9D992A
analogous
#2A689D #2A2E9D #602A9D
triadic
#2A2E9D #9D2A2E #2E9D2A
tetradic
#2A2E9D #9D2A68 #9D992A #2A9D60
square
#2A2E9D #9D2A68 #9D992A #2A9D60
split-complementary
#2A2E9D #9D602A #689D2A
monochromatic
#10123C #1D206D #2A2E9D #3A3FCA #6A6ED7

Accessibility & contrast

On white

10.63
#2A2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E9D
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E9D#FFFFFF#000000##FFFFFF
##2A2E9D1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2e9d;
/* rgb */ color: rgb(42, 46, 157);
/* oklch */ color: oklch(38.1% 0.175 272.8);
Tailwind
colors: {
  custom: {
    50: '#7567bb',
    500: '#2a2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e9d;
$custom-light: #7567bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e9d",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 237.913,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.17506,
    "h": 272.8
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#2A2E9D
secondary
#BEBB65
accent
#DC47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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