#2A3195#2A3195

#2A3195 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.161 H 272.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2A3195
RGBrgb(42, 49, 149)
HSLhsl(236, 56%, 37%)
HSVhsv(236, 72%, 58%)
CMYKcmyk(71.8%, 67.1%, 0%, 41.6%)
CIE-LABlab(26.33, 31.79, -55.66)
CIE-LCHlch(26.33, 64.10, 299.73°)
OKLaboklab(37.78% 0.0077 -0.1608)
OKLCHoklch(37.78% 0.161 272.7)
XYZxyz(7.4762, 4.8581, 28.9716)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3195 #958E2A
analogous
#2A6695 #2A3195 #592A95
triadic
#2A3195 #952A31 #31952A
tetradic
#2A3195 #952A66 #958E2A #2A9559
square
#2A3195 #952A66 #958E2A #2A9559
split-complementary
#2A3195 #95592A #66952A
monochromatic
#0F1236 #1D2165 #2A3195 #3741C5 #666DD4

Accessibility & contrast

On white

10.65
#2A3195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A3195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3195
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3195#FFFFFF#000000##FFFFFF
##2A31951.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3195;
/* rgb */ color: rgb(42, 49, 149);
/* oklch */ color: oklch(37.8% 0.161 272.7);
Tailwind
colors: {
  custom: {
    50: '#7369b5',
    500: '#2a3195',
    950: '#000000',
  },
}
SCSS
$custom: #2a3195;
$custom-light: #7369b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3195",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 149
  },
  "hsl": {
    "h": 236.075,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37783,
    "c": 0.161,
    "h": 272.7
  },
  "luminance": 0.04859
}

Semantic roles & 50–950 ramp

primary
#2A3195
secondary
#BAB461
accent
#D548DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3195

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

Preview Lab → · Contrast checker → · Palette generator →

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