#2F4197#2F4197

#2F4197 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.142 H 270.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2F4197
RGBrgb(47, 65, 151)
HSLhsl(230, 53%, 39%)
HSVhsv(230, 69%, 59%)
CMYKcmyk(68.9%, 57%, 0%, 40.8%)
CIE-LABlab(30.92, 22.62, -49.38)
CIE-LCHlch(30.92, 54.31, 294.62°)
OKLaboklab(41.31% 0.0003 -0.1421)
OKLCHoklch(41.31% 0.142 270.1)
XYZxyz(8.6466, 6.6185, 30.0940)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4197 #97852F
analogous
#2F7597 #2F4197 #512F97
triadic
#2F4197 #972F41 #41972F
tetradic
#2F4197 #972F75 #97852F #2F9751
square
#2F4197 #972F75 #97852F #2F9751
split-complementary
#2F4197 #97512F #75972F
monochromatic
#12193A #202D68 #2F4197 #4057C3 #6E80D2

Accessibility & contrast

On white

9.04
#2F4197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F4197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4197
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4197#FFFFFF#000000##FFFFFF
##2F41971.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4197;
/* rgb */ color: rgb(47, 65, 151);
/* oklch */ color: oklch(41.3% 0.142 270.1);
Tailwind
colors: {
  custom: {
    50: '#7575b6',
    500: '#2f4197',
    950: '#000000',
  },
}
SCSS
$custom: #2f4197;
$custom-light: #7575b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4197",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 229.615,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41312,
    "c": 0.14209,
    "h": 270.1
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#2F4197
secondary
#B9AB68
accent
#C34CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4197

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

Preview Lab → · Contrast checker → · Palette generator →

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