#2A4ABC#2A4ABC

#2A4ABC is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.0% C 0.183 H 266.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2A4ABC
RGBrgb(42, 74, 188)
HSLhsl(227, 63%, 45%)
HSVhsv(227, 78%, 74%)
CMYKcmyk(77.7%, 60.6%, 0%, 26.3%)
CIE-LABlab(36.02, 29.89, -63.21)
CIE-LCHlch(36.02, 69.92, 295.31°)
OKLaboklab(45.98% -0.0103 -0.1827)
OKLCHoklch(45.98% 0.183 266.8)
XYZxyz(12.4775, 9.0192, 48.6505)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4ABC #BC9C2A
analogous
#2A93BC #2A4ABC #532ABC
triadic
#2A4ABC #BC2A4A #4ABC2A
tetradic
#2A4ABC #BC2A93 #BC9C2A #2ABC53
square
#2A4ABC #BC2A93 #BC9C2A #2ABC53
split-complementary
#2A4ABC #BC532A #93BC2A
monochromatic
#142358 #1F368A #2A4ABC #4C6BD7 #7E94E2

Accessibility & contrast

On white

7.49
#2A4ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A4ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4ABC
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4ABC#FFFFFF#000000##FFFFFF
##2A4ABC1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#00677C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4abc;
/* rgb */ color: rgb(42, 74, 188);
/* oklch */ color: oklch(46.0% 0.183 266.8);
Tailwind
colors: {
  custom: {
    50: '#7b7cd1',
    500: '#2a4abc',
    950: '#000000',
  },
}
SCSS
$custom: #2a4abc;
$custom-light: #7b7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4abc",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 226.849,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.18299,
    "h": 266.8
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

primary
#2A4ABC
secondary
#CBB877
accent
#C241E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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