#2A3F95#2A3F95

#2A3F95 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.143 H 268.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2A3F95
RGBrgb(42, 63, 149)
HSLhsl(228, 56%, 37%)
HSVhsv(228, 72%, 58%)
CMYKcmyk(71.8%, 57.7%, 0%, 41.6%)
CIE-LABlab(29.95, 22.46, -49.74)
CIE-LCHlch(29.95, 54.58, 294.30°)
OKLaboklab(40.46% -0.0032 -0.1433)
OKLCHoklch(40.46% 0.143 268.7)
XYZxyz(8.1553, 6.2164, 29.1980)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F95 #95802A
analogous
#2A7595 #2A3F95 #4A2A95
triadic
#2A3F95 #952A3F #3F952A
tetradic
#2A3F95 #952A75 #95802A #2A954A
square
#2A3F95 #952A75 #95802A #2A954A
split-complementary
#2A3F95 #954A2A #75952A
monochromatic
#0F1736 #1D2B65 #2A3F95 #3753C5 #667BD4

Accessibility & contrast

On white

9.36
#2A3F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F95
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F95#FFFFFF#000000##FFFFFF
##2A3F951.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3f95;
/* rgb */ color: rgb(42, 63, 149);
/* oklch */ color: oklch(40.5% 0.143 268.7);
Tailwind
colors: {
  custom: {
    50: '#7273b5',
    500: '#2a3f95',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f95;
$custom-light: #7273b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f95",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 228.224,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.14335,
    "h": 268.7
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#2A3F95
secondary
#BAA861
accent
#C248DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3F95

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

Preview Lab → · Contrast checker → · Palette generator →

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