#2A3F94#2A3F94

#2A3F94 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.142 H 268.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2A3F94
RGBrgb(42, 63, 148)
HSLhsl(228, 56%, 37%)
HSVhsv(228, 72%, 58%)
CMYKcmyk(71.6%, 57.4%, 0%, 42%)
CIE-LABlab(29.87, 22.08, -49.26)
CIE-LCHlch(29.87, 53.98, 294.15°)
OKLaboklab(40.38% -0.0032 -0.1419)
OKLCHoklch(40.38% 0.142 268.7)
XYZxyz(8.0758, 6.1846, 28.7794)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F94 #947F2A
analogous
#2A7494 #2A3F94 #4A2A94
triadic
#2A3F94 #942A3F #3F942A
tetradic
#2A3F94 #942A74 #947F2A #2A944A
square
#2A3F94 #942A74 #947F2A #2A944A
split-complementary
#2A3F94 #944A2A #74942A
monochromatic
#0F1635 #1C2B64 #2A3F94 #3853C4 #657BD3

Accessibility & contrast

On white

9.39
#2A3F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F94
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F94#FFFFFF#000000##FFFFFF
##2A3F941.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3f94;
/* rgb */ color: rgb(42, 63, 148);
/* oklch */ color: oklch(40.4% 0.142 268.7);
Tailwind
colors: {
  custom: {
    50: '#7273b4',
    500: '#2a3f94',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f94;
$custom-light: #7273b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f94",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 148
  },
  "hsl": {
    "h": 228.113,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4038,
    "c": 0.14193,
    "h": 268.7
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#2A3F94
secondary
#B9A860
accent
#C149DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3F94

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

Preview Lab → · Contrast checker → · Palette generator →

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