#2A3F97#2A3F97

#2A3F97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.146 H 268.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A3F97
RGBrgb(42, 63, 151)
HSLhsl(228, 56%, 38%)
HSVhsv(228, 72%, 59%)
CMYKcmyk(72.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.11, 23.22, -50.71)
CIE-LCHlch(30.11, 55.77, 294.61°)
OKLaboklab(40.63% -0.0031 -0.1461)
OKLCHoklch(40.63% 0.146 268.8)
XYZxyz(8.3163, 6.2808, 30.0462)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F97 #97822A
analogous
#2A7697 #2A3F97 #4B2A97
triadic
#2A3F97 #972A3F #3F972A
tetradic
#2A3F97 #972A76 #97822A #2A974B
square
#2A3F97 #972A76 #97822A #2A974B
split-complementary
#2A3F97 #974B2A #76972A
monochromatic
#0F1737 #1D2B67 #2A3F97 #3753C7 #677CD5

Accessibility & contrast

On white

9.31
#2A3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F97
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F97#FFFFFF#000000##FFFFFF
##2A3F971.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3f97;
/* rgb */ color: rgb(42, 63, 151);
/* oklch */ color: oklch(40.6% 0.146 268.8);
Tailwind
colors: {
  custom: {
    50: '#7373b6',
    500: '#2a3f97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f97;
$custom-light: #7373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f97",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 228.44,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40631,
    "c": 0.14618,
    "h": 268.8
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#2A3F97
secondary
#BBAA62
accent
#C348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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