#2A3095#2A3095

#2A3095 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.162 H 273.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2A3095
RGBrgb(42, 48, 149)
HSLhsl(237, 56%, 37%)
HSVhsv(237, 72%, 58%)
CMYKcmyk(71.8%, 67.8%, 0%, 41.6%)
CIE-LABlab(26.08, 32.44, -56.06)
CIE-LCHlch(26.08, 64.76, 300.05°)
OKLaboklab(37.61% 0.0084 -0.162)
OKLCHoklch(37.61% 0.162 273)
XYZxyz(7.4348, 4.7753, 28.9579)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3095 #958F2A
analogous
#2A6595 #2A3095 #5A2A95
triadic
#2A3095 #952A30 #30952A
tetradic
#2A3095 #952A65 #958F2A #2A955A
square
#2A3095 #952A65 #958F2A #2A955A
split-complementary
#2A3095 #955A2A #65952A
monochromatic
#0F1136 #1D2165 #2A3095 #373FC5 #666CD4

Accessibility & contrast

On white

10.74
#2A3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3095
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3095#FFFFFF#000000##FFFFFF
##2A30951.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.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: #2a3095;
/* rgb */ color: rgb(42, 48, 149);
/* oklch */ color: oklch(37.6% 0.162 273.0);
Tailwind
colors: {
  custom: {
    50: '#7368b5',
    500: '#2a3095',
    950: '#000000',
  },
}
SCSS
$custom: #2a3095;
$custom-light: #7368b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3095",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 236.636,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37607,
    "c": 0.1622,
    "h": 273
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#2A3095
secondary
#BAB561
accent
#D748DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3095

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

Preview Lab → · Contrast checker → · Palette generator →

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