#2F459C#2F459C

#2F459C is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.144 H 268.8°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2F459C
RGBrgb(47, 69, 156)
HSLhsl(228, 54%, 40%)
HSVhsv(228, 70%, 61%)
CMYKcmyk(69.9%, 55.8%, 0%, 38.8%)
CIE-LABlab(32.39, 21.81, -50.03)
CIE-LCHlch(32.39, 54.58, 293.55°)
OKLaboklab(42.54% -0.003 -0.144)
OKLCHoklch(42.54% 0.144 268.8)
XYZxyz(9.2991, 7.2600, 32.3573)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F459C #9C862F
analogous
#2F7C9C #2F459C #502F9C
triadic
#2F459C #9C2F45 #459C2F
tetradic
#2F459C #9C2F7C #9C862F #2F9C50
square
#2F459C #9C2F7C #9C862F #2F9C50
split-complementary
#2F459C #9C502F #7C9C2F
monochromatic
#131B3E #21306D #2F459C #425DC6 #7185D4

Accessibility & contrast

On white

8.56
#2F459C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F459C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F459C
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F459C#FFFFFF#000000##FFFFFF
##2F459C1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#005A69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f459c;
/* rgb */ color: rgb(47, 69, 156);
/* oklch */ color: oklch(42.5% 0.144 268.8);
Tailwind
colors: {
  custom: {
    50: '#7578ba',
    500: '#2f459c',
    950: '#000000',
  },
}
SCSS
$custom: #2f459c;
$custom-light: #7578ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f459c",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 156
  },
  "hsl": {
    "h": 227.89,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42535,
    "c": 0.14399,
    "h": 268.8
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#2F459C
secondary
#BCAC6B
accent
#C04BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2F459C

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

Preview Lab → · Contrast checker → · Palette generator →

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