#2F3798#2F3798

#2F3798 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.156 H 273.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2F3798
RGBrgb(47, 55, 152)
HSLhsl(235, 53%, 39%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(69.1%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.39, 29.64, -54.11)
CIE-LCHlch(28.39, 61.70, 298.71°)
OKLaboklab(39.46% 0.0087 -0.1561)
OKLCHoklch(39.46% 0.156 273.2)
XYZxyz(8.2041, 5.6030, 30.3488)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3798 #98902F
analogous
#2F6C98 #2F3798 #5C2F98
triadic
#2F3798 #982F37 #37982F
tetradic
#2F3798 #982F6C #98902F #2F985C
square
#2F3798 #982F6C #98902F #2F985C
split-complementary
#2F3798 #985C2F #6C982F
monochromatic
#12153B #212669 #2F3798 #404AC4 #6F77D2

Accessibility & contrast

On white

9.90
#2F3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3798
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3798#FFFFFF#000000##FFFFFF
##2F37981.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3798;
/* rgb */ color: rgb(47, 55, 152);
/* oklch */ color: oklch(39.5% 0.156 273.2);
Tailwind
colors: {
  custom: {
    50: '#766eb7',
    500: '#2f3798',
    950: '#000000',
  },
}
SCSS
$custom: #2f3798;
$custom-light: #766eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3798",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 235.429,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.15636,
    "h": 273.2
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#2F3798
secondary
#BAB469
accent
#D14CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3798

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

Preview Lab → · Contrast checker → · Palette generator →

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