#2F3E97#2F3E97

#2F3E97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.146 H 271.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2F3E97
RGBrgb(47, 62, 151)
HSLhsl(231, 53%, 39%)
HSVhsv(231, 69%, 59%)
CMYKcmyk(68.9%, 58.9%, 0%, 40.8%)
CIE-LABlab(30.12, 24.63, -50.69)
CIE-LCHlch(30.12, 56.36, 295.92°)
OKLaboklab(40.71% 0.0029 -0.146)
OKLCHoklch(40.71% 0.146 271.1)
XYZxyz(8.4789, 6.2832, 30.0381)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E97 #97882F
analogous
#2F7297 #2F3E97 #542F97
triadic
#2F3E97 #972F3E #3E972F
tetradic
#2F3E97 #972F72 #97882F #2F9754
square
#2F3E97 #972F72 #97882F #2F9754
split-complementary
#2F3E97 #97542F #72972F
monochromatic
#12183A #202B68 #2F3E97 #4053C3 #6E7DD2

Accessibility & contrast

On white

9.31
#2F3E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F3E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E97
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E97#FFFFFF#000000##FFFFFF
##2F3E971.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3e97;
/* rgb */ color: rgb(47, 62, 151);
/* oklch */ color: oklch(40.7% 0.146 271.1);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#2f3e97',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e97;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e97",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 231.346,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4071,
    "c": 0.14601,
    "h": 271.1
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#2F3E97
secondary
#B9AE68
accent
#C74CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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