#2A3A95#2A3A95

#2A3A95 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.150 H 270.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2A3A95
RGBrgb(42, 58, 149)
HSLhsl(231, 56%, 37%)
HSVhsv(231, 72%, 58%)
CMYKcmyk(71.8%, 61.1%, 0%, 41.6%)
CIE-LABlab(28.61, 25.84, -51.93)
CIE-LCHlch(28.61, 58.00, 296.45°)
OKLaboklab(39.46% 0.0009 -0.1498)
OKLCHoklch(39.46% 0.15 270.4)
XYZxyz(7.8909, 5.6875, 29.1099)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A95 #95852A
analogous
#2A7095 #2A3A95 #4F2A95
triadic
#2A3A95 #952A3A #3A952A
tetradic
#2A3A95 #952A70 #95852A #2A954F
square
#2A3A95 #952A70 #95852A #2A954F
split-complementary
#2A3A95 #954F2A #70952A
monochromatic
#0F1536 #1D2765 #2A3A95 #374DC5 #6676D4

Accessibility & contrast

On white

9.82
#2A3A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A95
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A95#FFFFFF#000000##FFFFFF
##2A3A951.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3a95;
/* rgb */ color: rgb(42, 58, 149);
/* oklch */ color: oklch(39.5% 0.150 270.4);
Tailwind
colors: {
  custom: {
    50: '#7370b5',
    500: '#2a3a95',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a95;
$custom-light: #7370b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a95",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 231.028,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39463,
    "c": 0.1498,
    "h": 270.4
  },
  "luminance": 0.05688
}

Semantic roles & 50–950 ramp

primary
#2A3A95
secondary
#BAAD61
accent
#C948DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A95

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

Preview Lab → · Contrast checker → · Palette generator →

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