#2A4191#2A4191

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

Color values

HEX#2A4191
RGBrgb(42, 65, 145)
HSLhsl(227, 55%, 37%)
HSVhsv(227, 71%, 57%)
CMYKcmyk(71%, 55.2%, 0%, 43.1%)
CIE-LABlab(30.20, 19.58, -46.90)
CIE-LCHlch(30.20, 50.82, 292.66°)
OKLaboklab(40.55% -0.0051 -0.1349)
OKLCHoklch(40.55% 0.135 267.8)
XYZxyz(7.9542, 6.3164, 27.5826)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4191 #917A2A
analogous
#2A7591 #2A4191 #472A91
triadic
#2A4191 #912A41 #41912A
tetradic
#2A4191 #912A75 #917A2A #2A9147
square
#2A4191 #912A75 #917A2A #2A9147
split-complementary
#2A4191 #91472A #75912A
monochromatic
#0F1632 #1C2C62 #2A4191 #3856C0 #637CD2

Accessibility & contrast

On white

9.28
#2A4191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4191
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4191#FFFFFF#000000##FFFFFF
##2A41911.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044C94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4191;
/* rgb */ color: rgb(42, 65, 145);
/* oklch */ color: oklch(40.6% 0.135 267.8);
Tailwind
colors: {
  custom: {
    50: '#7175b2',
    500: '#2a4191',
    950: '#000000',
  },
}
SCSS
$custom: #2a4191;
$custom-light: #7175b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4191",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 226.602,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4055,
    "c": 0.13501,
    "h": 267.8
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#2A4191
secondary
#B8A45F
accent
#BD49DE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4191

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

Preview Lab → · Contrast checker → · Palette generator →

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