#2F3792#2F3792

#2F3792 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.148 H 273.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2F3792
RGBrgb(47, 55, 146)
HSLhsl(235, 51%, 38%)
HSVhsv(235, 68%, 57%)
CMYKcmyk(67.8%, 62.3%, 0%, 42.7%)
CIE-LABlab(27.88, 27.46, -51.27)
CIE-LCHlch(27.88, 58.16, 298.18°)
OKLaboklab(38.92% 0.009 -0.1478)
OKLCHoklch(38.92% 0.148 273.5)
XYZxyz(7.7251, 5.4113, 27.8259)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3792 #928A2F
analogous
#2F6892 #2F3792 #592F92
triadic
#2F3792 #922F37 #37922F
tetradic
#2F3792 #922F68 #928A2F #2F9259
square
#2F3792 #922F68 #928A2F #2F9259
split-complementary
#2F3792 #92592F #68922F
monochromatic
#111435 #202664 #2F3792 #3E48C0 #6C74D0

Accessibility & contrast

On white

10.08
#2F3792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3792
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3792#FFFFFF#000000##FFFFFF
##2F37921.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3792;
/* rgb */ color: rgb(47, 55, 146);
/* oklch */ color: oklch(38.9% 0.148 273.5);
Tailwind
colors: {
  custom: {
    50: '#746db3',
    500: '#2f3792',
    950: '#000000',
  },
}
SCSS
$custom: #2f3792;
$custom-light: #746db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3792",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 146
  },
  "hsl": {
    "h": 235.152,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38921,
    "c": 0.14804,
    "h": 273.5
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#2F3792
secondary
#B7B066
accent
#CF4DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3792

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

Preview Lab → · Contrast checker → · Palette generator →

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