#2A3097#2A3097

#2A3097 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.165 H 272.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2A3097
RGBrgb(42, 48, 151)
HSLhsl(237, 56%, 38%)
HSVhsv(237, 72%, 59%)
CMYKcmyk(72.2%, 68.2%, 0%, 40.8%)
CIE-LABlab(26.27, 33.16, -56.98)
CIE-LCHlch(26.27, 65.92, 300.20°)
OKLaboklab(37.8% 0.0081 -0.1647)
OKLCHoklch(37.8% 0.165 272.8)
XYZxyz(7.5958, 4.8398, 29.8060)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3097 #97912A
analogous
#2A6797 #2A3097 #5A2A97
triadic
#2A3097 #972A30 #30972A
tetradic
#2A3097 #972A67 #97912A #2A975A
square
#2A3097 #972A67 #97912A #2A975A
split-complementary
#2A3097 #975A2A #67972A
monochromatic
#0F1237 #1D2167 #2A3097 #373FC7 #676DD5

Accessibility & contrast

On white

10.67
#2A3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3097
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3097#FFFFFF#000000##FFFFFF
##2A30971.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3097;
/* rgb */ color: rgb(42, 48, 151);
/* oklch */ color: oklch(37.8% 0.165 272.8);
Tailwind
colors: {
  custom: {
    50: '#7468b7',
    500: '#2a3097',
    950: '#000000',
  },
}
SCSS
$custom: #2a3097;
$custom-light: #7468b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3097",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 236.697,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37801,
    "c": 0.16487,
    "h": 272.8
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#2A3097
secondary
#BBB662
accent
#D748E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3097

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

Preview Lab → · Contrast checker → · Palette generator →

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