#2A4187#2A4187

#2A4187 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.120 H 267.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2A4187
RGBrgb(42, 65, 135)
HSLhsl(225, 53%, 35%)
HSVhsv(225, 69%, 53%)
CMYKcmyk(68.9%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.47, 15.75, -41.92)
CIE-LCHlch(29.47, 44.78, 290.59°)
OKLaboklab(39.77% -0.0061 -0.1202)
OKLCHoklch(39.77% 0.12 267.1)
XYZxyz(7.2168, 6.0214, 23.6989)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4187 #87702A
analogous
#2A7087 #2A4187 #412A87
triadic
#2A4187 #872A41 #41872A
tetradic
#2A4187 #872A70 #87702A #2A8741
square
#2A4187 #872A70 #87702A #2A8741
split-complementary
#2A4187 #87412A #70872A
monochromatic
#0D142A #1B2B58 #2A4187 #3957B6 #5E7ACD

Accessibility & contrast

On white

9.53
#2A4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4187
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4187#FFFFFF#000000##FFFFFF
##2A41871.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4187;
/* rgb */ color: rgb(42, 65, 135);
/* oklch */ color: oklch(39.8% 0.120 267.1);
Tailwind
colors: {
  custom: {
    50: '#6f75aa',
    500: '#2a4187',
    950: '#000000',
  },
}
SCSS
$custom: #2a4187;
$custom-light: #6f75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4187",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 225.161,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.1204,
    "h": 267.1
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#2A4187
secondary
#B39D5A
accent
#B84CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4187

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

Preview Lab → · Contrast checker → · Palette generator →

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