#2A3AB1#2A3AB1

#2A3AB1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.187 H 269.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2A3AB1
RGBrgb(42, 58, 177)
HSLhsl(233, 62%, 43%)
HSVhsv(233, 76%, 69%)
CMYKcmyk(76.3%, 67.2%, 0%, 30.6%)
CIE-LABlab(31.09, 36.16, -64.77)
CIE-LCHlch(31.09, 74.18, 299.18°)
OKLaboklab(42.05% -0.0003 -0.1874)
OKLCHoklch(42.05% 0.187 269.9)
XYZxyz(10.4010, 6.6915, 42.3299)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AB1 #B1A12A
analogous
#2A7DB1 #2A3AB1 #5D2AB1
triadic
#2A3AB1 #B12A3A #3AB12A
tetradic
#2A3AB1 #B12A7D #B1A12A #2AB15D
square
#2A3AB1 #B12A7D #B1A12A #2AB15D
split-complementary
#2A3AB1 #B15D2A #7DB12A
monochromatic
#131A4E #1E2A80 #2A3AB1 #4556D3 #7783DF

Accessibility & contrast

On white

8.98
#2A3AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A3AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AB1
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AB1#FFFFFF#000000##FFFFFF
##2A3AB11.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a3ab1;
/* rgb */ color: rgb(42, 58, 177);
/* oklch */ color: oklch(42.1% 0.187 269.9);
Tailwind
colors: {
  custom: {
    50: '#7970c9',
    500: '#2a3ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2a3ab1;
$custom-light: #7970c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3ab1",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 232.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42054,
    "c": 0.18742,
    "h": 269.9
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#2A3AB1
secondary
#C6BC70
accent
#D243E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A3AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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