#2A45AF#2A45AF

#2A45AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.172 H 267.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A45AF
RGBrgb(42, 69, 175)
HSLhsl(228, 61%, 43%)
HSVhsv(228, 76%, 69%)
CMYKcmyk(76%, 60.6%, 0%, 31.4%)
CIE-LABlab(33.65, 28.29, -59.39)
CIE-LCHlch(33.65, 65.79, 295.47°)
OKLaboklab(43.88% -0.0071 -0.1716)
OKLCHoklch(43.88% 0.172 267.6)
XYZxyz(10.8181, 7.8424, 41.4927)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45AF #AF942A
analogous
#2A87AF #2A45AF #522AAF
triadic
#2A45AF #AF2A45 #45AF2A
tetradic
#2A45AF #AF2A87 #AF942A #2AAF52
square
#2A45AF #AF2A87 #AF942A #2AAF52
split-complementary
#2A45AF #AF522A #87AF2A
monochromatic
#121E4C #1E327E #2A45AF #4461D2 #758BDE

Accessibility & contrast

On white

8.18
#2A45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45AF
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45AF#FFFFFF#000000##FFFFFF
##2A45AF1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a45af;
/* rgb */ color: rgb(42, 69, 175);
/* oklch */ color: oklch(43.9% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#7878c8',
    500: '#2a45af',
    950: '#000000',
  },
}
SCSS
$custom: #2a45af;
$custom-light: #7878c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45af",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 227.82,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43884,
    "c": 0.17172,
    "h": 267.6
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#2A45AF
secondary
#C6B46F
accent
#C443E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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