#2F2B8D#2F2B8D

#2F2B8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.156 H 277.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2F2B8D
RGBrgb(47, 43, 141)
HSLhsl(242, 53%, 36%)
HSVhsv(242, 70%, 55%)
CMYKcmyk(66.7%, 69.5%, 0%, 44.7%)
CIE-LABlab(24.50, 33.45, -53.71)
CIE-LCHlch(24.50, 63.27, 301.91°)
OKLaboklab(36.32% 0.0192 -0.155)
OKLCHoklch(36.32% 0.156 277.1)
XYZxyz(6.8423, 4.2546, 25.6548)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B8D #898D2B
analogous
#2B588D #2F2B8D #602B8D
triadic
#2F2B8D #8D2F2B #2B8D2F
tetradic
#2F2B8D #8D2B58 #898D2B #2B8D60
square
#2F2B8D #8D2B58 #898D2B #2B8D60
split-complementary
#2F2B8D #8D602B #588D2B
monochromatic
#100E2F #1F1D5E #2F2B8D #3F39BC #6763CF

Accessibility & contrast

On white

11.35
#2F2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B8D
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B8D#FFFFFF#000000##FFFFFF
##2F2B8D1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2b8d;
/* rgb */ color: rgb(47, 43, 141);
/* oklch */ color: oklch(36.3% 0.156 277.1);
Tailwind
colors: {
  custom: {
    50: '#7465af',
    500: '#2f2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b8d;
$custom-light: #7465af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b8d",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 242.449,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.15616,
    "h": 277.1
  },
  "luminance": 0.04255
}

Semantic roles & 50–950 ramp

primary
#2F2B8D
secondary
#B2B65E
accent
#DD4BD7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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