#2F459D#2F459D

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

Color values

HEX#2F459D
RGBrgb(47, 69, 157)
HSLhsl(228, 54%, 40%)
HSVhsv(228, 70%, 62%)
CMYKcmyk(70.1%, 56.1%, 0%, 38.4%)
CIE-LABlab(32.47, 22.18, -50.51)
CIE-LCHlch(32.47, 55.17, 293.71°)
OKLaboklab(42.62% -0.003 -0.1454)
OKLCHoklch(42.62% 0.145 268.8)
XYZxyz(9.3841, 7.2940, 32.8051)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F459D #9D872F
analogous
#2F7C9D #2F459D #502F9D
triadic
#2F459D #9D2F45 #459D2F
tetradic
#2F459D #9D2F7C #9D872F #2F9D50
square
#2F459D #9D2F7C #9D872F #2F9D50
split-complementary
#2F459D #9D502F #7C9D2F
monochromatic
#131C3F #21306E #2F459D #435DC7 #7285D5

Accessibility & contrast

On white

8.54
#2F459D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F459D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F459D
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F459D#FFFFFF#000000##FFFFFF
##2F459D1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#005A6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f459d;
/* rgb */ color: rgb(47, 69, 157);
/* oklch */ color: oklch(42.6% 0.145 268.8);
Tailwind
colors: {
  custom: {
    50: '#7678bb',
    500: '#2f459d',
    950: '#000000',
  },
}
SCSS
$custom: #2f459d;
$custom-light: #7678bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f459d",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 157
  },
  "hsl": {
    "h": 228,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.42616,
    "c": 0.14541,
    "h": 268.8
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F459D

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

Preview Lab → · Contrast checker → · Palette generator →

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