#2A4298#2A4298

#2A4298 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.3% C 0.144 H 267.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2A4298
RGBrgb(42, 66, 152)
HSLhsl(227, 57%, 38%)
HSVhsv(227, 72%, 60%)
CMYKcmyk(72.4%, 56.6%, 0%, 40.4%)
CIE-LABlab(31.01, 21.58, -49.86)
CIE-LCHlch(31.01, 54.33, 293.40°)
OKLaboklab(41.33% -0.0055 -0.1436)
OKLCHoklch(41.33% 0.144 267.8)
XYZxyz(8.5686, 6.6548, 30.5326)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4298 #98802A
analogous
#2A7998 #2A4298 #492A98
triadic
#2A4298 #982A42 #42982A
tetradic
#2A4298 #982A79 #98802A #2A9849
square
#2A4298 #982A79 #98802A #2A9849
split-complementary
#2A4298 #98492A #79982A
monochromatic
#101838 #1D2D68 #2A4298 #3757C8 #677FD5

Accessibility & contrast

On white

9.01
#2A4298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A4298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4298
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4298#FFFFFF#000000##FFFFFF
##2A42981.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4298;
/* rgb */ color: rgb(42, 66, 152);
/* oklch */ color: oklch(41.3% 0.144 267.8);
Tailwind
colors: {
  custom: {
    50: '#7376b7',
    500: '#2a4298',
    950: '#000000',
  },
}
SCSS
$custom: #2a4298;
$custom-light: #7376b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4298",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 226.909,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41329,
    "c": 0.14372,
    "h": 267.8
  },
  "luminance": 0.06656
}

Semantic roles & 50–950 ramp

primary
#2A4298
secondary
#BBA862
accent
#BF48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4298

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

Preview Lab → · Contrast checker → · Palette generator →

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