#2A4094#2A4094

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

Color values

HEX#2A4094
RGBrgb(42, 64, 148)
HSLhsl(228, 56%, 37%)
HSVhsv(228, 72%, 58%)
CMYKcmyk(71.6%, 56.8%, 0%, 42%)
CIE-LABlab(30.15, 21.40, -48.81)
CIE-LCHlch(30.15, 53.30, 293.68°)
OKLaboklab(40.59% -0.0041 -0.1406)
OKLCHoklch(40.59% 0.141 268.3)
XYZxyz(8.1317, 6.2963, 28.7980)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4094 #947E2A
analogous
#2A7594 #2A4094 #492A94
triadic
#2A4094 #942A40 #40942A
tetradic
#2A4094 #942A75 #947E2A #2A9449
square
#2A4094 #942A75 #947E2A #2A9449
split-complementary
#2A4094 #94492A #75942A
monochromatic
#0F1735 #1C2B64 #2A4094 #3855C4 #657CD3

Accessibility & contrast

On white

9.29
#2A4094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4094
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4094#FFFFFF#000000##FFFFFF
##2A40941.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4094;
/* rgb */ color: rgb(42, 64, 148);
/* oklch */ color: oklch(40.6% 0.141 268.3);
Tailwind
colors: {
  custom: {
    50: '#7274b4',
    500: '#2a4094',
    950: '#000000',
  },
}
SCSS
$custom: #2a4094;
$custom-light: #7274b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4094",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 148
  },
  "hsl": {
    "h": 227.547,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40586,
    "c": 0.14062,
    "h": 268.3
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#2A4094
secondary
#B9A760
accent
#C049DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4094

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

Preview Lab → · Contrast checker → · Palette generator →

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