#2D5FAA#2D5FAA

#2D5FAA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.132 H 258.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2D5FAA
RGBrgb(45, 95, 170)
HSLhsl(216, 58%, 42%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(73.5%, 44.1%, 0%, 33.3%)
CIE-LABlab(40.64, 9.62, -45.12)
CIE-LCHlch(40.64, 46.13, 282.04°)
OKLaboklab(49.11% -0.0263 -0.1291)
OKLCHoklch(49.11% 0.132 258.5)
XYZxyz(12.4275, 11.6432, 39.6148)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FAA #AA782D
analogous
#2D9EAA #2D5FAA #392DAA
triadic
#2D5FAA #AA2D5F #5FAA2D
tetradic
#2D5FAA #AA2D9E #AA782D #2DAA39
square
#2D5FAA #AA2D9E #AA782D #2DAA39
split-complementary
#2D5FAA #AA392D #9EAA2D
monochromatic
#132949 #20447A #2D5FAA #467DCE #779FDB

Accessibility & contrast

On white

6.31
#2D5FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2D5FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FAA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FAA#FFFFFF#000000##FFFFFF
##2D5FAA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#235AA8
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5faa;
/* rgb */ color: rgb(45, 95, 170);
/* oklch */ color: oklch(49.1% 0.132 258.5);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2d5faa',
    950: '#000000',
  },
}
SCSS
$custom: #2d5faa;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5faa",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 216,
    "s": 58.14,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49114,
    "c": 0.13175,
    "h": 258.5
  },
  "luminance": 0.11645
}

Semantic roles & 50–950 ramp

primary
#2D5FAA
secondary
#C3A270
accent
#A346E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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