#2A3983#2A3983

#2A3983 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.125 H 270.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2A3983
RGBrgb(42, 57, 131)
HSLhsl(230, 51%, 34%)
HSVhsv(230, 68%, 51%)
CMYKcmyk(67.9%, 56.5%, 0%, 48.6%)
CIE-LABlab(26.90, 19.71, -43.58)
CIE-LCHlch(26.90, 47.83, 294.34°)
OKLaboklab(37.73% 0.0013 -0.1253)
OKLCHoklch(37.73% 0.125 270.6)
XYZxyz(6.5133, 5.0566, 22.1011)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3983 #83742A
analogous
#2A6683 #2A3983 #482A83
triadic
#2A3983 #832A39 #39832A
tetradic
#2A3983 #832A66 #83742A #2A8348
square
#2A3983 #832A66 #83742A #2A8348
split-complementary
#2A3983 #83482A #66832A
monochromatic
#0C1126 #1B2555 #2A3983 #394DB1 #5D6FCB

Accessibility & contrast

On white

10.44
#2A3983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A3983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3983
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3983#FFFFFF#000000##FFFFFF
##2A39831.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004486
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3983;
/* rgb */ color: rgb(42, 57, 131);
/* oklch */ color: oklch(37.7% 0.125 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f6fa8',
    500: '#2a3983',
    950: '#000000',
  },
}
SCSS
$custom: #2a3983;
$custom-light: #6f6fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3983",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 131
  },
  "hsl": {
    "h": 229.888,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37729,
    "c": 0.12528,
    "h": 270.6
  },
  "luminance": 0.05057
}

Semantic roles & 50–950 ramp

primary
#2A3983
secondary
#B1A258
accent
#C34DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3983

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

Preview Lab → · Contrast checker → · Palette generator →

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