#2A4299#2A4299

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

Color values

HEX#2A4299
RGBrgb(42, 66, 153)
HSLhsl(227, 57%, 38%)
HSVhsv(227, 73%, 60%)
CMYKcmyk(72.5%, 56.9%, 0%, 40%)
CIE-LABlab(31.09, 21.96, -50.34)
CIE-LCHlch(31.09, 54.92, 293.56°)
OKLaboklab(41.41% -0.0055 -0.145)
OKLCHoklch(41.41% 0.145 267.8)
XYZxyz(8.6508, 6.6877, 30.9658)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4299 #99812A
analogous
#2A7999 #2A4299 #492A99
triadic
#2A4299 #992A42 #42992A
tetradic
#2A4299 #992A79 #99812A #2A9949
square
#2A4299 #992A79 #99812A #2A9949
split-complementary
#2A4299 #99492A #79992A
monochromatic
#101939 #1D2D69 #2A4299 #3857C8 #6880D6

Accessibility & contrast

On white

8.98
#2A4299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A4299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4299
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4299#FFFFFF#000000##FFFFFF
##2A42991.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4299;
/* rgb */ color: rgb(42, 66, 153);
/* oklch */ color: oklch(41.4% 0.145 267.8);
Tailwind
colors: {
  custom: {
    50: '#7376b8',
    500: '#2a4299',
    950: '#000000',
  },
}
SCSS
$custom: #2a4299;
$custom-light: #7376b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4299",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 153
  },
  "hsl": {
    "h": 227.027,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41412,
    "c": 0.14513,
    "h": 267.8
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4299

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

Preview Lab → · Contrast checker → · Palette generator →

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