#2F4DAD#2F4DAD

#2F4DAD is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.158 H 266.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2F4DAD
RGBrgb(47, 77, 173)
HSLhsl(226, 57%, 43%)
HSVhsv(226, 73%, 68%)
CMYKcmyk(72.8%, 55.5%, 0%, 32.2%)
CIE-LABlab(35.85, 22.87, -54.62)
CIE-LCHlch(35.85, 59.22, 292.72°)
OKLaboklab(45.54% -0.0087 -0.1573)
OKLCHoklch(45.54% 0.158 266.8)
XYZxyz(11.3664, 8.9280, 40.6513)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DAD #AD8F2F
analogous
#2F8CAD #2F4DAD #502FAD
triadic
#2F4DAD #AD2F4D #4DAD2F
tetradic
#2F4DAD #AD2F8C #AD8F2F #2FAD50
square
#2F4DAD #AD2F8C #AD8F2F #2FAD50
split-complementary
#2F4DAD #AD502F #8CAD2F
monochromatic
#15224D #22387D #2F4DAD #4B6ACE #7B92DB

Accessibility & contrast

On white

7.54
#2F4DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F4DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DAD
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DAD#FFFFFF#000000##FFFFFF
##2F4DAD1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4dad;
/* rgb */ color: rgb(47, 77, 173);
/* oklch */ color: oklch(45.5% 0.158 266.8);
Tailwind
colors: {
  custom: {
    50: '#797ec6',
    500: '#2f4dad',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dad;
$custom-light: #797ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dad",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 173
  },
  "hsl": {
    "h": 225.714,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45538,
    "c": 0.15759,
    "h": 266.8
  },
  "luminance": 0.08929
}

Semantic roles & 50–950 ramp

primary
#2F4DAD
secondary
#C4B174
accent
#BC47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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