#2A318D#2A318D

#2A318D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.150 H 273.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2A318D
RGBrgb(42, 49, 141)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 55%)
CMYKcmyk(70.2%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.60, 28.87, -51.92)
CIE-LCHlch(25.60, 59.40, 299.08°)
OKLaboklab(37.03% 0.0083 -0.1498)
OKLCHoklch(37.03% 0.15 273.2)
XYZxyz(6.8593, 4.6113, 25.7227)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A318D #8D862A
analogous
#2A628D #2A318D #542A8D
triadic
#2A318D #8D2A31 #318D2A
tetradic
#2A318D #8D2A62 #8D862A #2A8D54
square
#2A318D #8D2A62 #8D862A #2A8D54
split-complementary
#2A318D #8D542A #628D2A
monochromatic
#0E102F #1C215E #2A318D #3841BC #6169D0

Accessibility & contrast

On white

10.92
#2A318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A318D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A318D#FFFFFF#000000##FFFFFF
##2A318D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a318d;
/* rgb */ color: rgb(42, 49, 141);
/* oklch */ color: oklch(37.0% 0.150 273.2);
Tailwind
colors: {
  custom: {
    50: '#7169af',
    500: '#2a318d',
    950: '#000000',
  },
}
SCSS
$custom: #2a318d;
$custom-light: #7169af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a318d",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 235.758,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37026,
    "c": 0.15008,
    "h": 273.2
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#2A318D
secondary
#B6B05D
accent
#D34ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A318D

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

Preview Lab → · Contrast checker → · Palette generator →

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