#2F2A9E#2F2A9E

#2F2A9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.179 H 275.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2F2A9E
RGBrgb(47, 42, 158)
HSLhsl(243, 58%, 39%)
HSVhsv(243, 73%, 62%)
CMYKcmyk(70.3%, 73.4%, 0%, 38%)
CIE-LABlab(25.95, 39.86, -61.78)
CIE-LCHlch(25.95, 73.53, 302.83°)
OKLaboklab(37.86% 0.0171 -0.1786)
OKLCHoklch(37.86% 0.179 275.5)
XYZxyz(8.1698, 4.7281, 32.8232)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A9E #999E2A
analogous
#2A5F9E #2F2A9E #692A9E
triadic
#2F2A9E #9E2F2A #2A9E2F
tetradic
#2F2A9E #9E2A5F #999E2A #2A9E69
square
#2F2A9E #9E2A5F #999E2A #2A9E69
split-complementary
#2F2A9E #9E692A #5F9E2A
monochromatic
#12103D #211D6E #2F2A9E #413ACB #6F6BD8

Accessibility & contrast

On white

10.79
#2F2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A9E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A9E#FFFFFF#000000##FFFFFF
##2F2A9E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2a9e;
/* rgb */ color: rgb(47, 42, 158);
/* oklch */ color: oklch(37.9% 0.179 275.5);
Tailwind
colors: {
  custom: {
    50: '#7865bc',
    500: '#2f2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a9e;
$custom-light: #7865bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a9e",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 242.586,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37861,
    "c": 0.1794,
    "h": 275.5
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#2F2A9E
secondary
#BABE66
accent
#E147DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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