#2F3789#2F3789

#2F3789 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.135 H 273.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#2F3789
RGBrgb(47, 55, 137)
HSLhsl(235, 49%, 36%)
HSVhsv(235, 66%, 54%)
CMYKcmyk(65.7%, 59.9%, 0%, 46.3%)
CIE-LABlab(27.14, 24.17, -46.91)
CIE-LCHlch(27.14, 52.77, 297.26°)
OKLaboklab(38.14% 0.0091 -0.135)
OKLCHoklch(38.14% 0.135 273.9)
XYZxyz(7.0523, 5.1423, 24.2830)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3789 #89812F
analogous
#2F6489 #2F3789 #542F89
triadic
#2F3789 #892F37 #37892F
tetradic
#2F3789 #892F64 #89812F #2F8954
square
#2F3789 #892F64 #89812F #2F8954
split-complementary
#2F3789 #89542F #64892F
monochromatic
#10122E #1F255B #2F3789 #3F49B7 #6770CB

Accessibility & contrast

On white

10.35
#2F3789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3789
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3789#FFFFFF#000000##FFFFFF
##2F37891.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3789;
/* rgb */ color: rgb(47, 55, 137);
/* oklch */ color: oklch(38.1% 0.135 273.9);
Tailwind
colors: {
  custom: {
    50: '#726dac',
    500: '#2f3789',
    950: '#000000',
  },
}
SCSS
$custom: #2f3789;
$custom-light: #726dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3789",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 234.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.13528,
    "h": 273.9
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#2F3789
secondary
#B2AB62
accent
#CC4FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3789

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

Preview Lab → · Contrast checker → · Palette generator →

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