#2A36A2#2A36A2

#2A36A2 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.172 H 271.1°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2A36A2
RGBrgb(42, 54, 162)
HSLhsl(234, 59%, 40%)
HSVhsv(234, 74%, 64%)
CMYKcmyk(74.1%, 66.7%, 0%, 36.5%)
CIE-LABlab(28.74, 33.28, -59.63)
CIE-LCHlch(28.74, 68.29, 299.17°)
OKLaboklab(39.91% 0.0032 -0.1724)
OKLCHoklch(39.91% 0.172 271.1)
XYZxyz(8.7934, 5.7383, 34.8196)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A36A2 #A2962A
analogous
#2A72A2 #2A36A2 #5A2AA2
triadic
#2A36A2 #A22A36 #36A22A
tetradic
#2A36A2 #A22A72 #A2962A #2AA25A
square
#2A36A2 #A22A72 #A2962A #2AA25A
split-complementary
#2A36A2 #A25A2A #72A22A
monochromatic
#111641 #1D2671 #2A36A2 #3D4BCD #6D78D9

Accessibility & contrast

On white

9.78
#2A36A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A36A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A36A2
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A36A2#FFFFFF#000000##FFFFFF
##2A36A21.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a36a2;
/* rgb */ color: rgb(42, 54, 162);
/* oklch */ color: oklch(39.9% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#766dbf',
    500: '#2a36a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a36a2;
$custom-light: #766dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a36a2",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 234,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.39913,
    "c": 0.17243,
    "h": 271.1
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#2A36A2
secondary
#C0B768
accent
#D246E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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