#2F4C97#2F4C97

#2F4C97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.128 H 265.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4C97
RGBrgb(47, 76, 151)
HSLhsl(223, 53%, 39%)
HSVhsv(223, 69%, 59%)
CMYKcmyk(68.9%, 49.7%, 0%, 40.8%)
CIE-LABlab(34.00, 15.23, -44.41)
CIE-LCHlch(34.00, 46.95, 288.93°)
OKLaboklab(43.64% -0.01 -0.1273)
OKLCHoklch(43.64% 0.128 265.5)
XYZxyz(9.3407, 8.0067, 30.3253)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C97 #977A2F
analogous
#2F8097 #2F4C97 #462F97
triadic
#2F4C97 #972F4C #4C972F
tetradic
#2F4C97 #972F80 #977A2F #2F9746
square
#2F4C97 #972F80 #977A2F #2F9746
split-complementary
#2F4C97 #97462F #80972F
monochromatic
#121D3A #203568 #2F4C97 #4064C3 #6E8AD2

Accessibility & contrast

On white

8.07
#2F4C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F4C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C97
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C97#FFFFFF#000000##FFFFFF
##2F4C971.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#074B95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4c97;
/* rgb */ color: rgb(47, 76, 151);
/* oklch */ color: oklch(43.6% 0.128 265.5);
Tailwind
colors: {
  custom: {
    50: '#747db6',
    500: '#2f4c97',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c97;
$custom-light: #747db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c97",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 223.269,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43638,
    "c": 0.1277,
    "h": 265.5
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#2F4C97
secondary
#B9A368
accent
#B44CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4C97

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

Preview Lab → · Contrast checker → · Palette generator →

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