#2A2E6C#2A2E6C

#2A2E6C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.106 H 276.3°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2A2E6C
RGBrgb(42, 46, 108)
HSLhsl(236, 44%, 29%)
HSVhsv(236, 61%, 42%)
CMYKcmyk(61.1%, 57.4%, 0%, 57.6%)
CIE-LABlab(22.05, 18.71, -36.82)
CIE-LCHlch(22.05, 41.30, 296.94°)
OKLaboklab(33.54% 0.0116 -0.1055)
OKLCHoklch(33.54% 0.106 276.3)
XYZxyz(4.6377, 3.5286, 14.6211)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E6C #6C682A
analogous
#2A4F6C #2A2E6C #472A6C
triadic
#2A2E6C #6C2A2E #2E6C2A
tetradic
#2A2E6C #6C2A4F #6C682A #2A6C47
square
#2A2E6C #6C2A4F #6C682A #2A6C47
split-complementary
#2A2E6C #6C472A #4F6C2A
monochromatic
#090916 #191B40 #2A2E6C #3B4198 #545ABC

Accessibility & contrast

On white

12.31
#2A2E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A2E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E6C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E6C#FFFFFF#000000##FFFFFF
##2A2E6C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05386E
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#013C48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2e6c;
/* rgb */ color: rgb(42, 46, 108);
/* oklch */ color: oklch(33.5% 0.106 276.3);
Tailwind
colors: {
  custom: {
    50: '#6a6697',
    500: '#2a2e6c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e6c;
$custom-light: #6a6697;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e6c",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 108
  },
  "hsl": {
    "h": 236.364,
    "s": 44,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33536,
    "c": 0.10614,
    "h": 276.3
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#2A2E6C
secondary
#9E9A54
accent
#CC54D4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A2E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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