#2F2A8E#2F2A8E

#2F2A8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.159 H 277.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2F2A8E
RGBrgb(47, 42, 142)
HSLhsl(243, 54%, 36%)
HSVhsv(243, 70%, 56%)
CMYKcmyk(66.9%, 70.4%, 0%, 44.3%)
CIE-LABlab(24.36, 34.41, -54.55)
CIE-LCHlch(24.36, 64.50, 302.25°)
OKLaboklab(36.25% 0.0198 -0.1574)
OKLCHoklch(36.25% 0.159 277.2)
XYZxyz(6.8812, 4.2127, 26.0364)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A8E #898E2A
analogous
#2A578E #2F2A8E #612A8E
triadic
#2F2A8E #8E2F2A #2A8E2F
tetradic
#2F2A8E #8E2A57 #898E2A #2A8E61
square
#2F2A8E #8E2A57 #898E2A #2A8E61
split-complementary
#2F2A8E #8E612A #578E2A
monochromatic
#100E30 #1F1C5F #2F2A8E #3F38BD #6762D1

Accessibility & contrast

On white

11.40
#2F2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2A8E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A8E#FFFFFF#000000##FFFFFF
##2F2A8E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2a8e;
/* rgb */ color: rgb(47, 42, 142);
/* oklch */ color: oklch(36.2% 0.159 277.2);
Tailwind
colors: {
  custom: {
    50: '#7464b0',
    500: '#2f2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a8e;
$custom-light: #7464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a8e",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 243,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36248,
    "c": 0.15868,
    "h": 277.2
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#2F2A8E
secondary
#B2B65D
accent
#DE4AD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2F2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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