#2F2B9E#2F2B9E

#2F2B9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.178 H 275.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9E
RGBrgb(47, 43, 158)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 73%, 62%)
CMYKcmyk(70.3%, 72.8%, 0%, 38%)
CIE-LABlab(26.16, 39.27, -61.43)
CIE-LCHlch(26.16, 72.91, 302.59°)
OKLaboklab(38.01% 0.0165 -0.1776)
OKLCHoklch(38.01% 0.178 275.3)
XYZxyz(8.2057, 4.8000, 32.8352)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9E #9A9E2B
analogous
#2B619E #2F2B9E #692B9E
triadic
#2F2B9E #9E2F2B #2B9E2F
tetradic
#2F2B9E #9E2B61 #9A9E2B #2B9E69
square
#2F2B9E #9E2B61 #9A9E2B #2B9E69
split-complementary
#2F2B9E #9E692B #619E2B
monochromatic
#12113E #211E6E #2F2B9E #413CCA #706CD7

Accessibility & contrast

On white

10.71
#2F2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B9E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9E#FFFFFF#000000##FFFFFF
##2F2B9E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2b9e;
/* rgb */ color: rgb(47, 43, 158);
/* oklch */ color: oklch(38.0% 0.178 275.3);
Tailwind
colors: {
  custom: {
    50: '#7866bc',
    500: '#2f2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9e;
$custom-light: #7866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9e",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 242.087,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38012,
    "c": 0.17833,
    "h": 275.3
  },
  "luminance": 0.04801
}

Semantic roles & 50–950 ramp

primary
#2F2B9E
secondary
#BBBE67
accent
#E047DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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