#2F4CA5#2F4CA5

#2F4CA5 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.148 H 266.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F4CA5
RGBrgb(47, 76, 165)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 65%)
CMYKcmyk(71.5%, 53.9%, 0%, 35.3%)
CIE-LABlab(34.98, 20.52, -51.25)
CIE-LCHlch(34.98, 55.21, 291.82°)
OKLaboklab(44.7% -0.0085 -0.1474)
OKLCHoklch(44.7% 0.148 266.7)
XYZxyz(10.5459, 8.4888, 36.6727)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CA5 #A5882F
analogous
#2F87A5 #2F4CA5 #4D2FA5
triadic
#2F4CA5 #A52F4C #4CA52F
tetradic
#2F4CA5 #A52F87 #A5882F #2FA54D
square
#2F4CA5 #A52F87 #A5882F #2FA54D
split-complementary
#2F4CA5 #A54D2F #87A52F
monochromatic
#142046 #213675 #2F4CA5 #4767CB #768ED8

Accessibility & contrast

On white

7.78
#2F4CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CA5
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CA5#FFFFFF#000000##FFFFFF
##2F4CA51.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B58A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4ca5;
/* rgb */ color: rgb(47, 76, 165);
/* oklch */ color: oklch(44.7% 0.148 266.7);
Tailwind
colors: {
  custom: {
    50: '#777dc0',
    500: '#2f4ca5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ca5;
$custom-light: #777dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ca5",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 225.254,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44698,
    "c": 0.14769,
    "h": 266.7
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#2F4CA5
secondary
#C0AC70
accent
#BA49DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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