#2A4095#2A4095

#2A4095 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.142 H 268.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2A4095
RGBrgb(42, 64, 149)
HSLhsl(228, 56%, 37%)
HSVhsv(228, 72%, 58%)
CMYKcmyk(71.8%, 57%, 0%, 41.6%)
CIE-LABlab(30.23, 21.79, -49.30)
CIE-LCHlch(30.23, 53.90, 293.84°)
OKLaboklab(40.67% -0.004 -0.142)
OKLCHoklch(40.67% 0.142 268.4)
XYZxyz(8.2112, 6.3281, 29.2167)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4095 #957F2A
analogous
#2A7595 #2A4095 #4A2A95
triadic
#2A4095 #952A40 #40952A
tetradic
#2A4095 #952A75 #957F2A #2A954A
square
#2A4095 #952A75 #957F2A #2A954A
split-complementary
#2A4095 #954A2A #75952A
monochromatic
#0F1736 #1D2B65 #2A4095 #3755C5 #667CD4

Accessibility & contrast

On white

9.27
#2A4095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4095
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4095#FFFFFF#000000##FFFFFF
##2A40951.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4095;
/* rgb */ color: rgb(42, 64, 149);
/* oklch */ color: oklch(40.7% 0.142 268.4);
Tailwind
colors: {
  custom: {
    50: '#7274b5',
    500: '#2a4095',
    950: '#000000',
  },
}
SCSS
$custom: #2a4095;
$custom-light: #7274b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4095",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 149
  },
  "hsl": {
    "h": 227.664,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40669,
    "c": 0.14205,
    "h": 268.4
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#2A4095
secondary
#BAA861
accent
#C048DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4095

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

Preview Lab → · Contrast checker → · Palette generator →

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