#2A3183#2A3183

#2A3183 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.136 H 273.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3183
RGBrgb(42, 49, 131)
HSLhsl(235, 51%, 34%)
HSVhsv(235, 68%, 51%)
CMYKcmyk(67.9%, 62.6%, 0%, 48.6%)
CIE-LABlab(24.72, 25.18, -47.11)
CIE-LCHlch(24.72, 53.42, 298.12°)
OKLaboklab(36.11% 0.0087 -0.1357)
OKLCHoklch(36.11% 0.136 273.7)
XYZxyz(6.1485, 4.3270, 21.9795)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3183 #837C2A
analogous
#2A5E83 #2A3183 #502A83
triadic
#2A3183 #832A31 #31832A
tetradic
#2A3183 #832A5E #837C2A #2A8350
square
#2A3183 #832A5E #837C2A #2A8350
split-complementary
#2A3183 #83502A #5E832A
monochromatic
#0C0E26 #1B2055 #2A3183 #3942B1 #5D65CB

Accessibility & contrast

On white

11.26
#2A3183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A3183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3183
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3183#FFFFFF#000000##FFFFFF
##2A31831.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3183;
/* rgb */ color: rgb(42, 49, 131);
/* oklch */ color: oklch(36.1% 0.136 273.7);
Tailwind
colors: {
  custom: {
    50: '#6f69a8',
    500: '#2a3183',
    950: '#000000',
  },
}
SCSS
$custom: #2a3183;
$custom-light: #6f69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3183",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 235.281,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36112,
    "c": 0.13602,
    "h": 273.7
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#2A3183
secondary
#B1AA58
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3183

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

Preview Lab → · Contrast checker → · Palette generator →

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