#2A3295#2A3295

#2A3295 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.160 H 272.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2A3295
RGBrgb(42, 50, 149)
HSLhsl(236, 56%, 37%)
HSVhsv(236, 72%, 58%)
CMYKcmyk(71.8%, 66.4%, 0%, 41.6%)
CIE-LABlab(26.57, 31.14, -55.26)
CIE-LCHlch(26.57, 63.43, 299.40°)
OKLaboklab(37.96% 0.007 -0.1596)
OKLCHoklch(37.96% 0.16 272.5)
XYZxyz(7.5184, 4.9426, 28.9857)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3295 #958D2A
analogous
#2A6895 #2A3295 #582A95
triadic
#2A3295 #952A32 #32952A
tetradic
#2A3295 #952A68 #958D2A #2A9558
square
#2A3295 #952A68 #958D2A #2A9558
split-complementary
#2A3295 #95582A #68952A
monochromatic
#0F1236 #1D2265 #2A3295 #3742C5 #666ED4

Accessibility & contrast

On white

10.56
#2A3295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3295
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3295#FFFFFF#000000##FFFFFF
##2A32951.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3295;
/* rgb */ color: rgb(42, 50, 149);
/* oklch */ color: oklch(38.0% 0.160 272.5);
Tailwind
colors: {
  custom: {
    50: '#736ab5',
    500: '#2a3295',
    950: '#000000',
  },
}
SCSS
$custom: #2a3295;
$custom-light: #736ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3295",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 149
  },
  "hsl": {
    "h": 235.514,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.15979,
    "h": 272.5
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#2A3295
secondary
#BAB361
accent
#D448DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3295

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

Preview Lab → · Contrast checker → · Palette generator →

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