#2A4193#2A4193

#2A4193 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.138 H 267.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2A4193
RGBrgb(42, 65, 147)
HSLhsl(227, 56%, 37%)
HSVhsv(227, 71%, 58%)
CMYKcmyk(71.4%, 55.8%, 0%, 42.4%)
CIE-LABlab(30.35, 20.34, -47.88)
CIE-LCHlch(30.35, 52.02, 293.02°)
OKLaboklab(40.71% -0.005 -0.1378)
OKLCHoklch(40.71% 0.138 267.9)
XYZxyz(8.1098, 6.3786, 28.4019)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4193 #937C2A
analogous
#2A7693 #2A4193 #472A93
triadic
#2A4193 #932A41 #41932A
tetradic
#2A4193 #932A76 #937C2A #2A9347
square
#2A4193 #932A76 #937C2A #2A9347
split-complementary
#2A4193 #93472A #76932A
monochromatic
#0F1734 #1C2C63 #2A4193 #3856C3 #657DD3

Accessibility & contrast

On white

9.23
#2A4193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A4193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4193
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4193#FFFFFF#000000##FFFFFF
##2A41931.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C96
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4193;
/* rgb */ color: rgb(42, 65, 147);
/* oklch */ color: oklch(40.7% 0.138 267.9);
Tailwind
colors: {
  custom: {
    50: '#7275b3',
    500: '#2a4193',
    950: '#000000',
  },
}
SCSS
$custom: #2a4193;
$custom-light: #7275b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4193",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 147
  },
  "hsl": {
    "h": 226.857,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.13789,
    "h": 267.9
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#2A4193
secondary
#B9A560
accent
#BE49DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4193

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

Preview Lab → · Contrast checker → · Palette generator →

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