#2F1E98#2F1E98

#2F1E98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.184 H 277.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1E98
RGBrgb(47, 30, 152)
HSLhsl(248, 67%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(69.1%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.00, 44.47, -62.98)
CIE-LCHlch(23.00, 77.09, 305.23°)
OKLaboklab(35.59% 0.0251 -0.1819)
OKLCHoklch(35.59% 0.184 277.8)
XYZxyz(7.3022, 3.7992, 30.0482)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E98 #87981E
analogous
#1E4A98 #2F1E98 #6C1E98
triadic
#2F1E98 #982F1E #1E982F
tetradic
#2F1E98 #981E4A #87981E #1E986C
square
#2F1E98 #981E4A #87981E #1E986C
split-complementary
#2F1E98 #986C1E #4A981E
monochromatic
#0F0A32 #1F1465 #2F1E98 #3F28CB #6653DD

Accessibility & contrast

On white

11.93
#2F1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E98
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E98#FFFFFF#000000##FFFFFF
##2F1E981.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1e98;
/* rgb */ color: rgb(47, 30, 152);
/* oklch */ color: oklch(35.6% 0.184 277.8);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#2f1e98',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e98;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e98",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 248.361,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.18366,
    "h": 277.8
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#2F1E98
secondary
#B1C051
accent
#EA3ED2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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