#2A4190#2A4190

#2A4190 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.134 H 267.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2A4190
RGBrgb(42, 65, 144)
HSLhsl(226, 55%, 36%)
HSVhsv(226, 71%, 56%)
CMYKcmyk(70.8%, 54.9%, 0%, 43.5%)
CIE-LABlab(30.12, 19.20, -46.41)
CIE-LCHlch(30.12, 50.22, 292.47°)
OKLaboklab(40.47% -0.0052 -0.1335)
OKLCHoklch(40.47% 0.134 267.8)
XYZxyz(7.8774, 6.2857, 27.1783)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4190 #90792A
analogous
#2A7490 #2A4190 #462A90
triadic
#2A4190 #902A41 #41902A
tetradic
#2A4190 #902A74 #90792A #2A9046
square
#2A4190 #902A74 #90792A #2A9046
split-complementary
#2A4190 #90462A #74902A
monochromatic
#0E1631 #1C2C61 #2A4190 #3856BF #637CD1

Accessibility & contrast

On white

9.30
#2A4190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A4190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4190
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4190#FFFFFF#000000##FFFFFF
##2A41901.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074C93
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4190;
/* rgb */ color: rgb(42, 65, 144);
/* oklch */ color: oklch(40.5% 0.134 267.8);
Tailwind
colors: {
  custom: {
    50: '#7175b1',
    500: '#2a4190',
    950: '#000000',
  },
}
SCSS
$custom: #2a4190;
$custom-light: #7175b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4190",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 144
  },
  "hsl": {
    "h": 226.471,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4047,
    "c": 0.13356,
    "h": 267.8
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#2A4190
secondary
#B7A35E
accent
#BD4ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4190

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

Preview Lab → · Contrast checker → · Palette generator →

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