#2F3790#2F3790

#2F3790 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.145 H 273.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2F3790
RGBrgb(47, 55, 144)
HSLhsl(235, 51%, 37%)
HSVhsv(235, 67%, 56%)
CMYKcmyk(67.4%, 61.8%, 0%, 43.5%)
CIE-LABlab(27.71, 26.73, -50.31)
CIE-LCHlch(27.71, 56.97, 297.98°)
OKLaboklab(38.75% 0.009 -0.145)
OKLCHoklch(38.75% 0.145 273.6)
XYZxyz(7.5708, 5.3497, 27.0138)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3790 #90882F
analogous
#2F6790 #2F3790 #582F90
triadic
#2F3790 #902F37 #37902F
tetradic
#2F3790 #902F67 #90882F #2F9058
square
#2F3790 #902F67 #90882F #2F9058
split-complementary
#2F3790 #90582F #67902F
monochromatic
#111434 #202562 #2F3790 #3E49BE #6B73CF

Accessibility & contrast

On white

10.14
#2F3790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F3790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3790
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3790#FFFFFF#000000##FFFFFF
##2F37901.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3790;
/* rgb */ color: rgb(47, 55, 144);
/* oklch */ color: oklch(38.7% 0.145 273.6);
Tailwind
colors: {
  custom: {
    50: '#746db1',
    500: '#2f3790',
    950: '#000000',
  },
}
SCSS
$custom: #2f3790;
$custom-light: #746db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3790",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 144
  },
  "hsl": {
    "h": 235.052,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.14524,
    "h": 273.6
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#2F3790
secondary
#B6AF65
accent
#CF4EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3790

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

Preview Lab → · Contrast checker → · Palette generator →

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