#2A3C94#2A3C94

#2A3C94 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.146 H 269.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A3C94
RGBrgb(42, 60, 148)
HSLhsl(230, 56%, 37%)
HSVhsv(230, 72%, 58%)
CMYKcmyk(71.6%, 59.5%, 0%, 42%)
CIE-LABlab(29.06, 24.11, -50.58)
CIE-LCHlch(29.06, 56.04, 295.49°)
OKLaboklab(39.77% -0.0007 -0.1458)
OKLCHoklch(39.77% 0.146 269.7)
XYZxyz(7.9142, 5.8613, 28.7255)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C94 #94822A
analogous
#2A7194 #2A3C94 #4D2A94
triadic
#2A3C94 #942A3C #3C942A
tetradic
#2A3C94 #942A71 #94822A #2A944D
square
#2A3C94 #942A71 #94822A #2A944D
split-complementary
#2A3C94 #944D2A #71942A
monochromatic
#0F1535 #1C2964 #2A3C94 #384FC4 #6578D3

Accessibility & contrast

On white

9.67
#2A3C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A3C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C94
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C94#FFFFFF#000000##FFFFFF
##2A3C941.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3c94;
/* rgb */ color: rgb(42, 60, 148);
/* oklch */ color: oklch(39.8% 0.146 269.7);
Tailwind
colors: {
  custom: {
    50: '#7271b4',
    500: '#2a3c94',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c94;
$custom-light: #7271b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c94",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 148
  },
  "hsl": {
    "h": 229.811,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39771,
    "c": 0.14582,
    "h": 269.7
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#2A3C94
secondary
#B9AA60
accent
#C649DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3C94

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

Preview Lab → · Contrast checker → · Palette generator →

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