#2A3F91#2A3F91

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

Color values

HEX#2A3F91
RGBrgb(42, 63, 145)
HSLhsl(228, 55%, 37%)
HSVhsv(228, 71%, 57%)
CMYKcmyk(71%, 56.6%, 0%, 43.1%)
CIE-LABlab(29.64, 20.94, -47.80)
CIE-LCHlch(29.64, 52.19, 293.66°)
OKLaboklab(40.13% -0.0034 -0.1376)
OKLCHoklch(40.13% 0.138 268.6)
XYZxyz(7.8414, 6.0908, 27.5450)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F91 #917C2A
analogous
#2A7391 #2A3F91 #492A91
triadic
#2A3F91 #912A3F #3F912A
tetradic
#2A3F91 #912A73 #917C2A #2A9149
square
#2A3F91 #912A73 #917C2A #2A9149
split-complementary
#2A3F91 #91492A #73912A
monochromatic
#0F1632 #1C2A62 #2A3F91 #3854C0 #637AD2

Accessibility & contrast

On white

9.47
#2A3F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3F91
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F91#FFFFFF#000000##FFFFFF
##2A3F911.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3f91;
/* rgb */ color: rgb(42, 63, 145);
/* oklch */ color: oklch(40.1% 0.138 268.6);
Tailwind
colors: {
  custom: {
    50: '#7173b2',
    500: '#2a3f91',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f91;
$custom-light: #7173b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f91",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 145
  },
  "hsl": {
    "h": 227.767,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.13764,
    "h": 268.6
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3F91

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

Preview Lab → · Contrast checker → · Palette generator →

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