#2A3194#2A3194

#2A3194 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.160 H 272.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2A3194
RGBrgb(42, 49, 148)
HSLhsl(236, 56%, 37%)
HSVhsv(236, 72%, 58%)
CMYKcmyk(71.6%, 66.9%, 0%, 42%)
CIE-LABlab(26.23, 31.43, -55.20)
CIE-LCHlch(26.23, 63.52, 299.65°)
OKLaboklab(37.69% 0.0078 -0.1595)
OKLCHoklch(37.69% 0.16 272.8)
XYZxyz(7.3967, 4.8263, 28.5530)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3194 #948D2A
analogous
#2A6694 #2A3194 #582A94
triadic
#2A3194 #942A31 #31942A
tetradic
#2A3194 #942A66 #948D2A #2A9458
square
#2A3194 #942A66 #948D2A #2A9458
split-complementary
#2A3194 #94582A #66942A
monochromatic
#0F1135 #1C2164 #2A3194 #3841C4 #656CD3

Accessibility & contrast

On white

10.68
#2A3194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A3194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3194
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3194#FFFFFF#000000##FFFFFF
##2A31941.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003992
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3194;
/* rgb */ color: rgb(42, 49, 148);
/* oklch */ color: oklch(37.7% 0.160 272.8);
Tailwind
colors: {
  custom: {
    50: '#7369b4',
    500: '#2a3194',
    950: '#000000',
  },
}
SCSS
$custom: #2a3194;
$custom-light: #7369b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3194",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 148
  },
  "hsl": {
    "h": 236.038,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.15965,
    "h": 272.8
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#2A3194
secondary
#B9B460
accent
#D549DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3194

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

Preview Lab → · Contrast checker → · Palette generator →

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