#2A4194#2A4194

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

Color values

HEX#2A4194
RGBrgb(42, 65, 148)
HSLhsl(227, 56%, 37%)
HSVhsv(227, 72%, 58%)
CMYKcmyk(71.6%, 56.1%, 0%, 42%)
CIE-LABlab(30.42, 20.73, -48.37)
CIE-LCHlch(30.42, 52.62, 293.20°)
OKLaboklab(40.79% -0.0049 -0.1392)
OKLCHoklch(40.79% 0.139 268)
XYZxyz(8.1886, 6.4101, 28.8170)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4194 #947D2A
analogous
#2A7694 #2A4194 #482A94
triadic
#2A4194 #942A41 #41942A
tetradic
#2A4194 #942A76 #947D2A #2A9448
square
#2A4194 #942A76 #947D2A #2A9448
split-complementary
#2A4194 #94482A #76942A
monochromatic
#0F1735 #1C2C64 #2A4194 #3856C4 #657DD3

Accessibility & contrast

On white

9.20
#2A4194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A4194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4194
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4194#FFFFFF#000000##FFFFFF
##2A41941.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4194;
/* rgb */ color: rgb(42, 65, 148);
/* oklch */ color: oklch(40.8% 0.139 268.0);
Tailwind
colors: {
  custom: {
    50: '#7275b4',
    500: '#2a4194',
    950: '#000000',
  },
}
SCSS
$custom: #2a4194;
$custom-light: #7275b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4194",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 148
  },
  "hsl": {
    "h": 226.981,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.13932,
    "h": 268
  },
  "luminance": 0.06411
}

Semantic roles & 50–950 ramp

primary
#2A4194
secondary
#B9A660
accent
#BE49DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4194

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

Preview Lab → · Contrast checker → · Palette generator →

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