#2A3394#2A3394

#2A3394 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.157 H 272.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2A3394
RGBrgb(42, 51, 148)
HSLhsl(235, 56%, 37%)
HSVhsv(235, 72%, 58%)
CMYKcmyk(71.6%, 65.5%, 0%, 42%)
CIE-LABlab(26.73, 30.12, -54.39)
CIE-LCHlch(26.73, 62.17, 298.98°)
OKLaboklab(38.05% 0.0063 -0.1571)
OKLCHoklch(38.05% 0.157 272.3)
XYZxyz(7.4822, 4.9973, 28.5815)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3394 #948B2A
analogous
#2A6894 #2A3394 #562A94
triadic
#2A3394 #942A33 #33942A
tetradic
#2A3394 #942A68 #948B2A #2A9456
square
#2A3394 #942A68 #948B2A #2A9456
split-complementary
#2A3394 #94562A #68942A
monochromatic
#0F1235 #1C2364 #2A3394 #3843C4 #656ED3

Accessibility & contrast

On white

10.50
#2A3394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A3394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3394
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3394#FFFFFF#000000##FFFFFF
##2A33941.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3394;
/* rgb */ color: rgb(42, 51, 148);
/* oklch */ color: oklch(38.0% 0.157 272.3);
Tailwind
colors: {
  custom: {
    50: '#736bb4',
    500: '#2a3394',
    950: '#000000',
  },
}
SCSS
$custom: #2a3394;
$custom-light: #736bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3394",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 148
  },
  "hsl": {
    "h": 234.906,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.15721,
    "h": 272.3
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#2A3394
secondary
#B9B260
accent
#D249DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3394

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

Preview Lab → · Contrast checker → · Palette generator →

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