#2F4192#2F4192

#2F4192 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.135 H 270.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4192
RGBrgb(47, 65, 146)
HSLhsl(229, 51%, 38%)
HSVhsv(229, 68%, 57%)
CMYKcmyk(67.8%, 55.5%, 0%, 42.7%)
CIE-LABlab(30.54, 20.76, -46.94)
CIE-LCHlch(30.54, 51.32, 293.86°)
OKLaboklab(40.91% 0 -0.1349)
OKLCHoklch(40.91% 0.135 270)
XYZxyz(8.2491, 6.4595, 28.0006)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4192 #92802F
analogous
#2F7292 #2F4192 #4E2F92
triadic
#2F4192 #922F41 #41922F
tetradic
#2F4192 #922F72 #92802F #2F924E
square
#2F4192 #922F72 #92802F #2F924E
split-complementary
#2F4192 #924E2F #72922F
monochromatic
#111835 #202C64 #2F4192 #3E56C0 #6C7ED0

Accessibility & contrast

On white

9.16
#2F4192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4192
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4192#FFFFFF#000000##FFFFFF
##2F41921.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044D95
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4192;
/* rgb */ color: rgb(47, 65, 146);
/* oklch */ color: oklch(40.9% 0.135 270.0);
Tailwind
colors: {
  custom: {
    50: '#7375b3',
    500: '#2f4192',
    950: '#000000',
  },
}
SCSS
$custom: #2f4192;
$custom-light: #7375b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4192",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 146
  },
  "hsl": {
    "h": 229.091,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40908,
    "c": 0.13491,
    "h": 270
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4192

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

Preview Lab → · Contrast checker → · Palette generator →

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