#2F3A97#2F3A97

#2F3A97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.151 H 272.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2F3A97
RGBrgb(47, 58, 151)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 69%, 59%)
CMYKcmyk(68.9%, 61.6%, 0%, 40.8%)
CIE-LABlab(29.07, 27.30, -52.39)
CIE-LCHlch(29.07, 59.08, 297.52°)
OKLaboklab(39.93% 0.0063 -0.151)
OKLCHoklch(39.93% 0.151 272.4)
XYZxyz(8.2694, 5.8640, 29.9682)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A97 #978C2F
analogous
#2F6E97 #2F3A97 #582F97
triadic
#2F3A97 #972F3A #3A972F
tetradic
#2F3A97 #972F6E #978C2F #2F9758
square
#2F3A97 #972F6E #978C2F #2F9758
split-complementary
#2F3A97 #97582F #6E972F
monochromatic
#12163A #202868 #2F3A97 #404EC3 #6E79D2

Accessibility & contrast

On white

9.66
#2F3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A97
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A97#FFFFFF#000000##FFFFFF
##2F3A971.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3a97;
/* rgb */ color: rgb(47, 58, 151);
/* oklch */ color: oklch(39.9% 0.151 272.4);
Tailwind
colors: {
  custom: {
    50: '#7570b6',
    500: '#2f3a97',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a97;
$custom-light: #7570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a97",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 233.654,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39931,
    "c": 0.15117,
    "h": 272.4
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#2F3A97
secondary
#B9B168
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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