#2A3F87#2A3F87

#2A3F87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.123 H 268.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2A3F87
RGBrgb(42, 63, 135)
HSLhsl(226, 53%, 35%)
HSVhsv(226, 69%, 53%)
CMYKcmyk(68.9%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.89, 17.12, -42.84)
CIE-LCHlch(28.89, 46.14, 291.78°)
OKLaboklab(39.33% -0.0041 -0.123)
OKLCHoklch(39.33% 0.123 268.1)
XYZxyz(7.1040, 5.7958, 23.6613)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F87 #87722A
analogous
#2A6D87 #2A3F87 #442A87
triadic
#2A3F87 #872A3F #3F872A
tetradic
#2A3F87 #872A6D #87722A #2A8744
square
#2A3F87 #872A6D #87722A #2A8744
split-complementary
#2A3F87 #87442A #6D872A
monochromatic
#0D132A #1B2958 #2A3F87 #3955B6 #5E77CD

Accessibility & contrast

On white

9.72
#2A3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F87
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F87#FFFFFF#000000##FFFFFF
##2A3F871.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3f87;
/* rgb */ color: rgb(42, 63, 135);
/* oklch */ color: oklch(39.3% 0.123 268.1);
Tailwind
colors: {
  custom: {
    50: '#6f73aa',
    500: '#2a3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f87;
$custom-light: #6f73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f87",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 226.452,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39329,
    "c": 0.12308,
    "h": 268.1
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#2A3F87
secondary
#B39F5A
accent
#BB4CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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