#2F4EA2#2F4EA2

#2F4EA2 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.141 H 265.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA2
RGBrgb(47, 78, 162)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(71%, 51.9%, 0%, 36.5%)
CIE-LABlab(35.32, 18.05, -48.90)
CIE-LCHlch(35.32, 52.13, 290.26°)
OKLaboklab(44.89% -0.0105 -0.1405)
OKLCHoklch(44.89% 0.141 265.7)
XYZxyz(10.4160, 8.6607, 35.2982)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA2 #A2832F
analogous
#2F87A2 #2F4EA2 #492FA2
triadic
#2F4EA2 #A22F4E #4EA22F
tetradic
#2F4EA2 #A22F87 #A2832F #2FA249
square
#2F4EA2 #A22F87 #A2832F #2FA249
split-complementary
#2F4EA2 #A2492F #87A22F
monochromatic
#132043 #213773 #2F4EA2 #4569C9 #758FD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4EA2#FFFFFF#000000##FFFFFF
##2F4EA21.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)
#1A59A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ea2;
/* rgb */ color: rgb(47, 78, 162);
/* oklch */ color: oklch(44.9% 0.141 265.7);
Tailwind
colors: {
  custom: {
    50: '#767fbe',
    500: '#2f4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea2;
$custom-light: #767fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea2",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 223.826,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44889,
    "c": 0.14089,
    "h": 265.7
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#2F4EA2
secondary
#BFA96E
accent
#B649DE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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