#2A3F92#2A3F92

#2A3F92 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.139 H 268.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A3F92
RGBrgb(42, 63, 146)
HSLhsl(228, 55%, 37%)
HSVhsv(228, 71%, 57%)
CMYKcmyk(71.2%, 56.8%, 0%, 42.7%)
CIE-LABlab(29.72, 21.32, -48.29)
CIE-LCHlch(29.72, 52.79, 293.82°)
OKLaboklab(40.21% -0.0033 -0.139)
OKLCHoklch(40.21% 0.139 268.6)
XYZxyz(7.9189, 6.1218, 27.9528)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F92 #927D2A
analogous
#2A7392 #2A3F92 #492A92
triadic
#2A3F92 #922A3F #3F922A
tetradic
#2A3F92 #922A73 #927D2A #2A9249
square
#2A3F92 #922A73 #927D2A #2A9249
split-complementary
#2A3F92 #92492A #73922A
monochromatic
#0F1633 #1C2A62 #2A3F92 #3854C2 #647AD2

Accessibility & contrast

On white

9.44
#2A3F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A3F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F92
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F92#FFFFFF#000000##FFFFFF
##2A3F921.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B95
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3f92;
/* rgb */ color: rgb(42, 63, 146);
/* oklch */ color: oklch(40.2% 0.139 268.6);
Tailwind
colors: {
  custom: {
    50: '#7173b3',
    500: '#2a3f92',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f92;
$custom-light: #7173b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f92",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 146
  },
  "hsl": {
    "h": 227.885,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40214,
    "c": 0.13907,
    "h": 268.6
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#2A3F92
secondary
#B8A65F
accent
#C049DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3F92

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

Preview Lab → · Contrast checker → · Palette generator →

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