#2A3F96#2A3F96

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

Color values

HEX#2A3F96
RGBrgb(42, 63, 150)
HSLhsl(228, 56%, 38%)
HSVhsv(228, 72%, 59%)
CMYKcmyk(72%, 58%, 0%, 41.2%)
CIE-LABlab(30.03, 22.84, -50.23)
CIE-LCHlch(30.03, 55.18, 294.46°)
OKLaboklab(40.55% -0.0031 -0.1447)
OKLCHoklch(40.55% 0.145 268.8)
XYZxyz(8.2355, 6.2484, 29.6203)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F96 #96812A
analogous
#2A7596 #2A3F96 #4B2A96
triadic
#2A3F96 #962A3F #3F962A
tetradic
#2A3F96 #962A75 #96812A #2A964B
square
#2A3F96 #962A75 #96812A #2A964B
split-complementary
#2A3F96 #964B2A #75962A
monochromatic
#0F1736 #1D2B66 #2A3F96 #3753C6 #667CD4

Accessibility & contrast

On white

9.33
#2A3F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A3F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F96
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F96#FFFFFF#000000##FFFFFF
##2A3F961.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3f96;
/* rgb */ color: rgb(42, 63, 150);
/* oklch */ color: oklch(40.5% 0.145 268.8);
Tailwind
colors: {
  custom: {
    50: '#7273b6',
    500: '#2a3f96',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f96;
$custom-light: #7273b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f96",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 228.333,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40547,
    "c": 0.14476,
    "h": 268.8
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#2A3F96
secondary
#BAA961
accent
#C248E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3F96

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

Preview Lab → · Contrast checker → · Palette generator →

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