#2F3B97#2F3B97

#2F3B97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.150 H 272.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2F3B97
RGBrgb(47, 59, 151)
HSLhsl(233, 53%, 39%)
HSVhsv(233, 69%, 59%)
CMYKcmyk(68.9%, 60.9%, 0%, 40.8%)
CIE-LABlab(29.33, 26.64, -51.97)
CIE-LCHlch(29.33, 58.40, 297.14°)
OKLaboklab(40.12% 0.0055 -0.1498)
OKLCHoklch(40.12% 0.15 272.1)
XYZxyz(8.3203, 5.9659, 29.9852)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B97 #978B2F
analogous
#2F6F97 #2F3B97 #572F97
triadic
#2F3B97 #972F3B #3B972F
tetradic
#2F3B97 #972F6F #978B2F #2F9757
square
#2F3B97 #972F6F #978B2F #2F9757
split-complementary
#2F3B97 #97572F #6F972F
monochromatic
#12173A #202968 #2F3B97 #404FC3 #6E7AD2

Accessibility & contrast

On white

9.57
#2F3B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B97
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B97#FFFFFF#000000##FFFFFF
##2F3B971.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3b97;
/* rgb */ color: rgb(47, 59, 151);
/* oklch */ color: oklch(40.1% 0.150 272.1);
Tailwind
colors: {
  custom: {
    50: '#7570b6',
    500: '#2f3b97',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b97;
$custom-light: #7570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b97",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 233.077,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40123,
    "c": 0.14989,
    "h": 272.1
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#2F3B97
secondary
#B9B068
accent
#CB4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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