#2A4099#2A4099

#2A4099 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.148 H 268.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2A4099
RGBrgb(42, 64, 153)
HSLhsl(228, 57%, 38%)
HSVhsv(228, 73%, 60%)
CMYKcmyk(72.5%, 58.2%, 0%, 40%)
CIE-LABlab(30.54, 23.31, -51.23)
CIE-LCHlch(30.54, 56.28, 294.46°)
OKLaboklab(41% -0.0038 -0.1477)
OKLCHoklch(41% 0.148 268.5)
XYZxyz(8.5360, 6.4581, 30.9275)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4099 #99832A
analogous
#2A7799 #2A4099 #4B2A99
triadic
#2A4099 #992A40 #40992A
tetradic
#2A4099 #992A77 #99832A #2A994B
square
#2A4099 #992A77 #99832A #2A994B
split-complementary
#2A4099 #994B2A #77992A
monochromatic
#101839 #1D2C69 #2A4099 #3854C8 #687ED6

Accessibility & contrast

On white

9.16
#2A4099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4099
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4099#FFFFFF#000000##FFFFFF
##2A40991.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4099;
/* rgb */ color: rgb(42, 64, 153);
/* oklch */ color: oklch(41.0% 0.148 268.5);
Tailwind
colors: {
  custom: {
    50: '#7374b8',
    500: '#2a4099',
    950: '#000000',
  },
}
SCSS
$custom: #2a4099;
$custom-light: #7374b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4099",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 228.108,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41003,
    "c": 0.14771,
    "h": 268.5
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#2A4099
secondary
#BCAA63
accent
#C248E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4099

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

Preview Lab → · Contrast checker → · Palette generator →

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