#2F3898#2F3898

#2F3898 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.155 H 272.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F3898
RGBrgb(47, 56, 152)
HSLhsl(235, 53%, 39%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(69.1%, 63.2%, 0%, 40.4%)
CIE-LABlab(28.64, 28.99, -53.70)
CIE-LCHlch(28.64, 61.03, 298.36°)
OKLaboklab(39.64% 0.0079 -0.1549)
OKLCHoklch(39.64% 0.155 272.9)
XYZxyz(8.2521, 5.6989, 30.3648)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3898 #988F2F
analogous
#2F6D98 #2F3898 #5B2F98
triadic
#2F3898 #982F38 #38982F
tetradic
#2F3898 #982F6D #988F2F #2F985B
square
#2F3898 #982F6D #988F2F #2F985B
split-complementary
#2F3898 #985B2F #6D982F
monochromatic
#12163B #212769 #2F3898 #404BC4 #6F77D2

Accessibility & contrast

On white

9.81
#2F3898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3898
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3898#FFFFFF#000000##FFFFFF
##2F38981.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3898;
/* rgb */ color: rgb(47, 56, 152);
/* oklch */ color: oklch(39.6% 0.155 272.9);
Tailwind
colors: {
  custom: {
    50: '#756eb7',
    500: '#2f3898',
    950: '#000000',
  },
}
SCSS
$custom: #2f3898;
$custom-light: #756eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3898",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 234.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.1551,
    "h": 272.9
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#2F3898
secondary
#BAB369
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3898

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

Preview Lab → · Contrast checker → · Palette generator →

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