#2F2A8D#2F2A8D

#2F2A8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.157 H 277.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F2A8D
RGBrgb(47, 42, 141)
HSLhsl(243, 54%, 36%)
HSVhsv(243, 70%, 55%)
CMYKcmyk(66.7%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.27, 34.07, -54.08)
CIE-LCHlch(24.27, 63.92, 302.21°)
OKLaboklab(36.15% 0.02 -0.1561)
OKLCHoklch(36.15% 0.157 277.3)
XYZxyz(6.8064, 4.1828, 25.6428)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A8D #888D2A
analogous
#2A568D #2F2A8D #602A8D
triadic
#2F2A8D #8D2F2A #2A8D2F
tetradic
#2F2A8D #8D2A56 #888D2A #2A8D60
square
#2F2A8D #8D2A56 #888D2A #2A8D60
split-complementary
#2F2A8D #8D602A #568D2A
monochromatic
#100E2F #1F1C5E #2F2A8D #3F38BC #6761D0

Accessibility & contrast

On white

11.43
#2F2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A8D
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A8D#FFFFFF#000000##FFFFFF
##2F2A8D1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2a8d;
/* rgb */ color: rgb(47, 42, 141);
/* oklch */ color: oklch(36.1% 0.157 277.3);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2f2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a8d;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a8d",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 243.03,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3615,
    "c": 0.15735,
    "h": 277.3
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#2F2A8D
secondary
#B1B65D
accent
#DD4AD6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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