#2F458F#2F458F

#2F458F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.125 H 268.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F458F
RGBrgb(47, 69, 143)
HSLhsl(226, 51%, 37%)
HSVhsv(226, 67%, 56%)
CMYKcmyk(67.1%, 51.7%, 0%, 43.9%)
CIE-LABlab(31.45, 16.93, -43.64)
CIE-LCHlch(31.45, 46.81, 291.20°)
OKLaboklab(41.52% -0.0041 -0.1251)
OKLCHoklch(41.52% 0.125 268.1)
XYZxyz(8.2566, 6.8430, 26.8670)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F458F #8F792F
analogous
#2F758F #2F458F #492F8F
triadic
#2F458F #8F2F45 #458F2F
tetradic
#2F458F #8F2F75 #8F792F #2F8F49
square
#2F458F #8F2F75 #8F792F #2F8F49
split-complementary
#2F458F #8F492F #758F2F
monochromatic
#111933 #202F61 #2F458F #3E5BBD #6A81CE

Accessibility & contrast

On white

8.87
#2F458F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F458F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F458F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F458F#FFFFFF#000000##FFFFFF
##2F458F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f458f;
/* rgb */ color: rgb(47, 69, 143);
/* oklch */ color: oklch(41.5% 0.125 268.1);
Tailwind
colors: {
  custom: {
    50: '#7378b0',
    500: '#2f458f',
    950: '#000000',
  },
}
SCSS
$custom: #2f458f;
$custom-light: #7378b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f458f",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 143
  },
  "hsl": {
    "h": 226.25,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41521,
    "c": 0.12522,
    "h": 268.1
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#2F458F
secondary
#B5A365
accent
#BA4EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F458F

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

Preview Lab → · Contrast checker → · Palette generator →

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