#2F459F#2F459F

#2F459F is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.148 H 268.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2F459F
RGBrgb(47, 69, 159)
HSLhsl(228, 54%, 40%)
HSVhsv(228, 70%, 62%)
CMYKcmyk(70.4%, 56.6%, 0%, 37.6%)
CIE-LABlab(32.62, 22.93, -51.48)
CIE-LCHlch(32.62, 56.35, 294.01°)
OKLaboklab(42.78% -0.0029 -0.1482)
OKLCHoklch(42.78% 0.148 268.9)
XYZxyz(9.5563, 7.3628, 33.7117)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F459F #9F892F
analogous
#2F7D9F #2F459F #512F9F
triadic
#2F459F #9F2F45 #459F2F
tetradic
#2F459F #9F2F7D #9F892F #2F9F51
square
#2F459F #9F2F7D #9F892F #2F9F51
split-complementary
#2F459F #9F512F #7D9F2F
monochromatic
#131C41 #213170 #2F459F #445EC8 #7386D6

Accessibility & contrast

On white

8.49
#2F459F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F459F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F459F
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F459F#FFFFFF#000000##FFFFFF
##2F459F1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f459f;
/* rgb */ color: rgb(47, 69, 159);
/* oklch */ color: oklch(42.8% 0.148 268.9);
Tailwind
colors: {
  custom: {
    50: '#7678bc',
    500: '#2f459f',
    950: '#000000',
  },
}
SCSS
$custom: #2f459f;
$custom-light: #7678bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f459f",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 159
  },
  "hsl": {
    "h": 228.214,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.14824,
    "h": 268.9
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#2F459F
secondary
#BDAD6D
accent
#C14ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F459F

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

Preview Lab → · Contrast checker → · Palette generator →

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