#2A45A8#2A45A8

#2A45A8 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.162 H 267.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2A45A8
RGBrgb(42, 69, 168)
HSLhsl(227, 60%, 41%)
HSVhsv(227, 75%, 66%)
CMYKcmyk(75%, 58.9%, 0%, 34.1%)
CIE-LABlab(33.08, 25.65, -56.15)
CIE-LCHlch(33.08, 61.73, 294.55°)
OKLaboklab(43.28% -0.0072 -0.162)
OKLCHoklch(43.28% 0.162 267.4)
XYZxyz(10.1484, 7.5745, 37.9654)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A8 #A88D2A
analogous
#2A84A8 #2A45A8 #4E2AA8
triadic
#2A45A8 #A82A45 #45A82A
tetradic
#2A45A8 #A82A84 #A88D2A #2AA84E
square
#2A45A8 #A82A84 #A88D2A #2AA84E
split-complementary
#2A45A8 #A84E2A #84A82A
monochromatic
#121D46 #1E3177 #2A45A8 #405FCF #7188DB

Accessibility & contrast

On white

8.35
#2A45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A8
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A8#FFFFFF#000000##FFFFFF
##2A45A81.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a45a8;
/* rgb */ color: rgb(42, 69, 168);
/* oklch */ color: oklch(43.3% 0.162 267.4);
Tailwind
colors: {
  custom: {
    50: '#7678c3',
    500: '#2a45a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a8;
$custom-light: #7678c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a8",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 227.143,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43279,
    "c": 0.1622,
    "h": 267.4
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#2A45A8
secondary
#C3B06B
accent
#C145E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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