#2F4BAD#2F4BAD

#2F4BAD is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.160 H 267.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F4BAD
RGBrgb(47, 75, 173)
HSLhsl(227, 57%, 43%)
HSVhsv(227, 73%, 68%)
CMYKcmyk(72.8%, 56.6%, 0%, 32.2%)
CIE-LABlab(35.31, 24.19, -55.50)
CIE-LCHlch(35.31, 60.54, 293.55°)
OKLaboklab(45.13% -0.0071 -0.1599)
OKLCHoklch(45.13% 0.16 267.5)
XYZxyz(11.2286, 8.6524, 40.6054)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BAD #AD912F
analogous
#2F8AAD #2F4BAD #522FAD
triadic
#2F4BAD #AD2F4B #4BAD2F
tetradic
#2F4BAD #AD2F8A #AD912F #2FAD52
square
#2F4BAD #AD2F8A #AD912F #2FAD52
split-complementary
#2F4BAD #AD522F #8AAD2F
monochromatic
#15214D #22367D #2F4BAD #4B68CE #7B91DB

Accessibility & contrast

On white

7.69
#2F4BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F4BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BAD
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BAD#FFFFFF#000000##FFFFFF
##2F4BAD1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4bad;
/* rgb */ color: rgb(47, 75, 173);
/* oklch */ color: oklch(45.1% 0.160 267.5);
Tailwind
colors: {
  custom: {
    50: '#797cc6',
    500: '#2f4bad',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bad;
$custom-light: #797cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bad",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 173
  },
  "hsl": {
    "h": 226.667,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45133,
    "c": 0.16011,
    "h": 267.5
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#2F4BAD
secondary
#C4B274
accent
#BE47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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