#2A318E#2A318E

#2A318E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.151 H 273.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2A318E
RGBrgb(42, 49, 142)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 56%)
CMYKcmyk(70.4%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.69, 29.24, -52.39)
CIE-LCHlch(25.69, 60.00, 299.16°)
OKLaboklab(37.12% 0.0082 -0.1512)
OKLCHoklch(37.12% 0.151 273.1)
XYZxyz(6.9340, 4.6412, 26.1164)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A318E #8E872A
analogous
#2A638E #2A318E #552A8E
triadic
#2A318E #8E2A31 #318E2A
tetradic
#2A318E #8E2A63 #8E872A #2A8E55
square
#2A318E #8E2A63 #8E872A #2A8E55
split-complementary
#2A318E #8E552A #638E2A
monochromatic
#0E1030 #1C215F #2A318E #3841BD #626AD1

Accessibility & contrast

On white

10.89
#2A318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A318E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A318E#FFFFFF#000000##FFFFFF
##2A318E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a318e;
/* rgb */ color: rgb(42, 49, 142);
/* oklch */ color: oklch(37.1% 0.151 273.1);
Tailwind
colors: {
  custom: {
    50: '#7269b0',
    500: '#2a318e',
    950: '#000000',
  },
}
SCSS
$custom: #2a318e;
$custom-light: #7269b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a318e",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 235.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37119,
    "c": 0.15146,
    "h": 273.1
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#2A318E
secondary
#B6B05D
accent
#D34ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A318E

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

Preview Lab → · Contrast checker → · Palette generator →

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