#2F2A8C#2F2A8C

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

Color values

HEX#2F2A8C
RGBrgb(47, 42, 140)
HSLhsl(243, 54%, 36%)
HSVhsv(243, 70%, 55%)
CMYKcmyk(66.4%, 70%, 0%, 45.1%)
CIE-LABlab(24.17, 33.72, -53.62)
CIE-LCHlch(24.17, 63.34, 302.17°)
OKLaboklab(36.05% 0.0201 -0.1547)
OKLCHoklch(36.05% 0.156 277.4)
XYZxyz(6.7323, 4.1532, 25.2527)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A8C #878C2A
analogous
#2A568C #2F2A8C #602A8C
triadic
#2F2A8C #8C2F2A #2A8C2F
tetradic
#2F2A8C #8C2A56 #878C2A #2A8C60
square
#2F2A8C #8C2A56 #878C2A #2A8C60
split-complementary
#2F2A8C #8C602A #568C2A
monochromatic
#0F0E2E #1F1C5D #2F2A8C #3F38BB #6661D0

Accessibility & contrast

On white

11.47
#2F2A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A8C
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A8C#FFFFFF#000000##FFFFFF
##2F2A8C1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2a8c;
/* rgb */ color: rgb(47, 42, 140);
/* oklch */ color: oklch(36.1% 0.156 277.4);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2f2a8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a8c;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a8c",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 243.061,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.15602,
    "h": 277.4
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#2F2A8C
secondary
#B1B55C
accent
#DD4BD6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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