#2F2090#2F2090

#2F2090 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.172 H 278.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2F2090
RGBrgb(47, 32, 144)
HSLhsl(248, 64%, 35%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(67.4%, 77.8%, 0%, 43.5%)
CIE-LABlab(22.48, 40.90, -58.89)
CIE-LCHlch(22.48, 71.70, 304.78°)
OKLaboklab(34.97% 0.0261 -0.1701)
OKLCHoklch(34.97% 0.172 278.7)
XYZxyz(6.7212, 3.6504, 26.7306)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2090 #819020
analogous
#204990 #2F2090 #672090
triadic
#2F2090 #902F20 #20902F
tetradic
#2F2090 #902049 #819020 #209067
square
#2F2090 #902049 #819020 #209067
split-complementary
#2F2090 #906720 #499020
monochromatic
#0E0A2C #1F155E #2F2090 #3F2BC2 #6452D9

Accessibility & contrast

On white

12.14
#2F2090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F2090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2090
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2090#FFFFFF#000000##FFFFFF
##2F20901.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2090;
/* rgb */ color: rgb(47, 32, 144);
/* oklch */ color: oklch(35.0% 0.172 278.7);
Tailwind
colors: {
  custom: {
    50: '#765eb2',
    500: '#2f2090',
    950: '#000000',
  },
}
SCSS
$custom: #2f2090;
$custom-light: #765eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2090",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 248.036,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.17206,
    "h": 278.7
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#2F2090
secondary
#ADBC50
accent
#E741D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F2090

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

Preview Lab → · Contrast checker → · Palette generator →

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