#2A3F99#2A3F99

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

Color values

HEX#2A3F99
RGBrgb(42, 63, 153)
HSLhsl(229, 57%, 38%)
HSVhsv(229, 73%, 60%)
CMYKcmyk(72.5%, 58.8%, 0%, 40%)
CIE-LABlab(30.27, 23.98, -51.67)
CIE-LCHlch(30.27, 56.96, 294.90°)
OKLaboklab(40.8% -0.003 -0.149)
OKLCHoklch(40.8% 0.149 268.8)
XYZxyz(8.4801, 6.3463, 30.9089)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F99 #99842A
analogous
#2A7699 #2A3F99 #4D2A99
triadic
#2A3F99 #992A3F #3F992A
tetradic
#2A3F99 #992A76 #99842A #2A994D
square
#2A3F99 #992A76 #99842A #2A994D
split-complementary
#2A3F99 #994D2A #76992A
monochromatic
#101739 #1D2B69 #2A3F99 #3853C8 #687DD6

Accessibility & contrast

On white

9.25
#2A3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A3F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F99
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F99#FFFFFF#000000##FFFFFF
##2A3F991.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3f99;
/* rgb */ color: rgb(42, 63, 153);
/* oklch */ color: oklch(40.8% 0.149 268.8);
Tailwind
colors: {
  custom: {
    50: '#7373b8',
    500: '#2a3f99',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f99;
$custom-light: #7373b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f99",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 228.649,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40801,
    "c": 0.149,
    "h": 268.8
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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