#2A4091#2A4091

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

Color values

HEX#2A4091
RGBrgb(42, 64, 145)
HSLhsl(227, 55%, 37%)
HSVhsv(227, 71%, 57%)
CMYKcmyk(71%, 55.9%, 0%, 43.1%)
CIE-LABlab(29.92, 20.26, -47.35)
CIE-LCHlch(29.92, 51.50, 293.16°)
OKLaboklab(40.34% -0.0042 -0.1363)
OKLCHoklch(40.34% 0.136 268.2)
XYZxyz(7.8973, 6.2026, 27.5636)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4091 #917B2A
analogous
#2A7491 #2A4091 #472A91
triadic
#2A4091 #912A40 #40912A
tetradic
#2A4091 #912A74 #917B2A #2A9147
square
#2A4091 #912A74 #917B2A #2A9147
split-complementary
#2A4091 #91472A #74912A
monochromatic
#0F1632 #1C2B62 #2A4091 #3855C0 #637BD2

Accessibility & contrast

On white

9.37
#2A4091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A4091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4091
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4091#FFFFFF#000000##FFFFFF
##2A40911.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4091;
/* rgb */ color: rgb(42, 64, 145);
/* oklch */ color: oklch(40.3% 0.136 268.2);
Tailwind
colors: {
  custom: {
    50: '#7174b2',
    500: '#2a4091',
    950: '#000000',
  },
}
SCSS
$custom: #2a4091;
$custom-light: #7174b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4091",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 145
  },
  "hsl": {
    "h": 227.184,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4034,
    "c": 0.13633,
    "h": 268.2
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#2A4091
secondary
#B8A55F
accent
#BF49DE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4091

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

Preview Lab → · Contrast checker → · Palette generator →

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