#2A4199#2A4199

#2A4199 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.146 H 268.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2A4199
RGBrgb(42, 65, 153)
HSLhsl(228, 57%, 38%)
HSVhsv(228, 73%, 60%)
CMYKcmyk(72.5%, 57.5%, 0%, 40%)
CIE-LABlab(30.81, 22.63, -50.79)
CIE-LCHlch(30.81, 55.60, 294.02°)
OKLaboklab(41.21% -0.0047 -0.1463)
OKLCHoklch(41.21% 0.146 268.2)
XYZxyz(8.5929, 6.5719, 30.9465)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4199 #99822A
analogous
#2A7899 #2A4199 #4B2A99
triadic
#2A4199 #992A41 #41992A
tetradic
#2A4199 #992A78 #99822A #2A994B
square
#2A4199 #992A78 #99822A #2A994B
split-complementary
#2A4199 #994B2A #78992A
monochromatic
#101839 #1D2D69 #2A4199 #3856C8 #687FD6

Accessibility & contrast

On white

9.07
#2A4199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A4199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4199
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4199#FFFFFF#000000##FFFFFF
##2A41991.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4199;
/* rgb */ color: rgb(42, 65, 153);
/* oklch */ color: oklch(41.2% 0.146 268.2);
Tailwind
colors: {
  custom: {
    50: '#7375b8',
    500: '#2a4199',
    950: '#000000',
  },
}
SCSS
$custom: #2a4199;
$custom-light: #7375b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4199",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 153
  },
  "hsl": {
    "h": 227.568,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41207,
    "c": 0.14642,
    "h": 268.2
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#2A4199
secondary
#BCA963
accent
#C148E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4199

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

Preview Lab → · Contrast checker → · Palette generator →

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