#2A4F95#2A4F95

#2A4F95 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 43.9% C 0.123 H 261.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#2A4F95
RGBrgb(42, 79, 149)
HSLhsl(219, 56%, 37%)
HSVhsv(219, 72%, 58%)
CMYKcmyk(71.8%, 47%, 0%, 41.6%)
CIE-LABlab(34.50, 11.66, -42.39)
CIE-LCHlch(34.50, 43.97, 285.38°)
OKLaboklab(43.92% -0.0176 -0.1214)
OKLCHoklch(43.92% 0.123 261.8)
XYZxyz(9.1737, 8.2532, 29.5375)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F95 #95702A
analogous
#2A8595 #2A4F95 #3A2A95
triadic
#2A4F95 #952A4F #4F952A
tetradic
#2A4F95 #952A85 #95702A #2A953A
square
#2A4F95 #952A85 #95702A #2A953A
split-complementary
#2A4F95 #953A2A #85952A
monochromatic
#0F1C36 #1D3665 #2A4F95 #3768C5 #668CD4

Accessibility & contrast

On white

7.92
#2A4F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2A4F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F95
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F95#FFFFFF#000000##FFFFFF
##2A4F951.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5698
Deuteranopia (green-blind)
#154D94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4f95;
/* rgb */ color: rgb(42, 79, 149);
/* oklch */ color: oklch(43.9% 0.123 261.8);
Tailwind
colors: {
  custom: {
    50: '#717fb5',
    500: '#2a4f95',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f95;
$custom-light: #717fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f95",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 219.252,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4392,
    "c": 0.12269,
    "h": 261.8
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#2A4F95
secondary
#BA9B61
accent
#AB48DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F95

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

Preview Lab → · Contrast checker → · Palette generator →

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