#2F4EAD#2F4EAD

#2F4EAD is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.156 H 266.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2F4EAD
RGBrgb(47, 78, 173)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 68%)
CMYKcmyk(72.8%, 54.9%, 0%, 32.2%)
CIE-LABlab(36.12, 22.20, -54.18)
CIE-LCHlch(36.12, 58.56, 292.28°)
OKLaboklab(45.74% -0.0095 -0.156)
OKLCHoklch(45.74% 0.156 266.5)
XYZxyz(11.4369, 9.0690, 40.6748)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EAD #AD8E2F
analogous
#2F8DAD #2F4EAD #4F2FAD
triadic
#2F4EAD #AD2F4E #4EAD2F
tetradic
#2F4EAD #AD2F8D #AD8E2F #2FAD4F
square
#2F4EAD #AD2F8D #AD8E2F #2FAD4F
split-complementary
#2F4EAD #AD4F2F #8DAD2F
monochromatic
#15234D #22387D #2F4EAD #4B6BCE #7B93DB

Accessibility & contrast

On white

7.46
#2F4EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F4EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EAD
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EAD#FFFFFF#000000##FFFFFF
##2F4EAD1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4ead;
/* rgb */ color: rgb(47, 78, 173);
/* oklch */ color: oklch(45.7% 0.156 266.5);
Tailwind
colors: {
  custom: {
    50: '#797fc6',
    500: '#2f4ead',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ead;
$custom-light: #797fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ead",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 173
  },
  "hsl": {
    "h": 225.238,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45743,
    "c": 0.15633,
    "h": 266.5
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#2F4EAD
secondary
#C4B074
accent
#BB47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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