#2A4BAF#2A4BAF

#2A4BAF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.164 H 266.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2A4BAF
RGBrgb(42, 75, 175)
HSLhsl(225, 61%, 43%)
HSVhsv(225, 76%, 69%)
CMYKcmyk(76%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.24, 24.32, -56.81)
CIE-LCHlch(35.24, 61.79, 293.17°)
OKLaboklab(45.07% -0.0114 -0.1639)
OKLCHoklch(45.07% 0.164 266)
XYZxyz(11.2061, 8.6183, 41.6220)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BAF #AF8E2A
analogous
#2A8DAF #2A4BAF #4C2AAF
triadic
#2A4BAF #AF2A4B #4BAF2A
tetradic
#2A4BAF #AF2A8D #AF8E2A #2AAF4C
square
#2A4BAF #AF2A8D #AF8E2A #2AAF4C
split-complementary
#2A4BAF #AF4C2A #8DAF2A
monochromatic
#12214C #1E367E #2A4BAF #4467D2 #758FDE

Accessibility & contrast

On white

7.71
#2A4BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A4BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4BAF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BAF#FFFFFF#000000##FFFFFF
##2A4BAF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4baf;
/* rgb */ color: rgb(42, 75, 175);
/* oklch */ color: oklch(45.1% 0.164 266.0);
Tailwind
colors: {
  custom: {
    50: '#777cc8',
    500: '#2a4baf',
    950: '#000000',
  },
}
SCSS
$custom: #2a4baf;
$custom-light: #777cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4baf",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 225.113,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.16428,
    "h": 266
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#2A4BAF
secondary
#C6B06F
accent
#BC43E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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