#2A3FAB#2A3FAB

#2A3FAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.174 H 269.0°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2A3FAB
RGBrgb(42, 63, 171)
HSLhsl(230, 61%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(75.4%, 63.2%, 0%, 32.9%)
CIE-LABlab(31.78, 30.74, -60.07)
CIE-LCHlch(31.78, 67.48, 297.10°)
OKLaboklab(42.39% -0.0031 -0.1736)
OKLCHoklch(42.39% 0.174 269)
XYZxyz(10.0805, 6.9864, 39.3374)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FAB #AB962A
analogous
#2A7FAB #2A3FAB #562AAB
triadic
#2A3FAB #AB2A3F #3FAB2A
tetradic
#2A3FAB #AB2A7F #AB962A #2AAB56
square
#2A3FAB #AB2A7F #AB962A #2AAB56
split-complementary
#2A3FAB #AB562A #7FAB2A
monochromatic
#121B49 #1E2D7A #2A3FAB #4259D1 #7384DD

Accessibility & contrast

On white

8.76
#2A3FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2A3FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FAB
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FAB#FFFFFF#000000##FFFFFF
##2A3FAB1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a3fab;
/* rgb */ color: rgb(42, 63, 171);
/* oklch */ color: oklch(42.4% 0.174 269.0);
Tailwind
colors: {
  custom: {
    50: '#7774c5',
    500: '#2a3fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fab;
$custom-light: #7774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fab",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 230.233,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.17366,
    "h": 269
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#2A3FAB
secondary
#C4B66D
accent
#CA44E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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