#2A4090#2A4090

#2A4090 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.135 H 268.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2A4090
RGBrgb(42, 64, 144)
HSLhsl(227, 55%, 36%)
HSVhsv(227, 71%, 56%)
CMYKcmyk(70.8%, 55.6%, 0%, 43.5%)
CIE-LABlab(29.84, 19.88, -46.86)
CIE-LCHlch(29.84, 50.90, 292.99°)
OKLaboklab(40.26% -0.0043 -0.1348)
OKLCHoklch(40.26% 0.135 268.2)
XYZxyz(7.8205, 6.1719, 27.1593)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4090 #907A2A
analogous
#2A7390 #2A4090 #472A90
triadic
#2A4090 #902A40 #40902A
tetradic
#2A4090 #902A73 #907A2A #2A9047
square
#2A4090 #902A73 #907A2A #2A9047
split-complementary
#2A4090 #90472A #73902A
monochromatic
#0E1631 #1C2B61 #2A4090 #3855BF #637BD1

Accessibility & contrast

On white

9.40
#2A4090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4090
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4090#FFFFFF#000000##FFFFFF
##2A40901.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014B93
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4090;
/* rgb */ color: rgb(42, 64, 144);
/* oklch */ color: oklch(40.3% 0.135 268.2);
Tailwind
colors: {
  custom: {
    50: '#7174b1',
    500: '#2a4090',
    950: '#000000',
  },
}
SCSS
$custom: #2a4090;
$custom-light: #7174b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4090",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 144
  },
  "hsl": {
    "h": 227.059,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40259,
    "c": 0.13488,
    "h": 268.2
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#2A4090
secondary
#B7A45E
accent
#BE4ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4090

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

Preview Lab → · Contrast checker → · Palette generator →

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