#2F4191#2F4191

#2F4191 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.133 H 270.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2F4191
RGBrgb(47, 65, 145)
HSLhsl(229, 51%, 38%)
HSVhsv(229, 68%, 57%)
CMYKcmyk(67.6%, 55.2%, 0%, 43.1%)
CIE-LABlab(30.47, 20.38, -46.45)
CIE-LCHlch(30.47, 50.72, 293.69°)
OKLaboklab(40.83% -0.0001 -0.1335)
OKLCHoklch(40.83% 0.133 270)
XYZxyz(8.1717, 6.4285, 27.5928)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4191 #917F2F
analogous
#2F7291 #2F4191 #4E2F91
triadic
#2F4191 #912F41 #41912F
tetradic
#2F4191 #912F72 #917F2F #2F914E
square
#2F4191 #912F72 #917F2F #2F914E
split-complementary
#2F4191 #914E2F #72912F
monochromatic
#111835 #202C63 #2F4191 #3E56BF #6B7ECF

Accessibility & contrast

On white

9.19
#2F4191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4191
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4191#FFFFFF#000000##FFFFFF
##2F41911.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064C94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4191;
/* rgb */ color: rgb(47, 65, 145);
/* oklch */ color: oklch(40.8% 0.133 270.0);
Tailwind
colors: {
  custom: {
    50: '#7375b2',
    500: '#2f4191',
    950: '#000000',
  },
}
SCSS
$custom: #2f4191;
$custom-light: #7375b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4191",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 228.98,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.13347,
    "h": 270
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#2F4191
secondary
#B6A765
accent
#C14DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4191

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

Preview Lab → · Contrast checker → · Palette generator →

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