#2A4291#2A4291

#2A4291 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.134 H 267.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4291
RGBrgb(42, 66, 145)
HSLhsl(226, 55%, 37%)
HSVhsv(226, 71%, 57%)
CMYKcmyk(71%, 54.5%, 0%, 43.1%)
CIE-LABlab(30.48, 18.90, -46.44)
CIE-LCHlch(30.48, 50.14, 292.14°)
OKLaboklab(40.76% -0.006 -0.1336)
OKLCHoklch(40.76% 0.134 267.4)
XYZxyz(8.0121, 6.4322, 27.6019)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4291 #91792A
analogous
#2A7691 #2A4291 #462A91
triadic
#2A4291 #912A42 #42912A
tetradic
#2A4291 #912A76 #91792A #2A9146
square
#2A4291 #912A76 #91792A #2A9146
split-complementary
#2A4291 #91462A #76912A
monochromatic
#0F1732 #1C2C62 #2A4291 #3858C0 #637DD2

Accessibility & contrast

On white

9.18
#2A4291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4291
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4291#FFFFFF#000000##FFFFFF
##2A42911.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094D94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4291;
/* rgb */ color: rgb(42, 66, 145);
/* oklch */ color: oklch(40.8% 0.134 267.4);
Tailwind
colors: {
  custom: {
    50: '#7175b2',
    500: '#2a4291',
    950: '#000000',
  },
}
SCSS
$custom: #2a4291;
$custom-light: #7175b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4291",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 145
  },
  "hsl": {
    "h": 226.019,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40762,
    "c": 0.1337,
    "h": 267.4
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#2A4291
secondary
#B8A35F
accent
#BC49DE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4291

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

Preview Lab → · Contrast checker → · Palette generator →

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