#2A2F7E#2A2F7E

#2A2F7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.132 H 274.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2A2F7E
RGBrgb(42, 47, 126)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 67%, 49%)
CMYKcmyk(66.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.77, 24.68, -45.51)
CIE-LCHlch(23.77, 51.77, 298.47°)
OKLaboklab(35.28% 0.0107 -0.1311)
OKLCHoklch(35.28% 0.132 274.7)
XYZxyz(5.7360, 4.0311, 20.2104)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7E #7E792A
analogous
#2A597E #2A2F7E #4F2A7E
triadic
#2A2F7E #7E2A2F #2F7E2A
tetradic
#2A2F7E #7E2A59 #7E792A #2A7E4F
square
#2A2F7E #7E2A59 #7E792A #2A7E4F
split-complementary
#2A2F7E #7E4F2A #597E2A
monochromatic
#0B0D22 #1B1E50 #2A2F7E #3940AC #5A61C8

Accessibility & contrast

On white

11.63
#2A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F7E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7E#FFFFFF#000000##FFFFFF
##2A2F7E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2f7e;
/* rgb */ color: rgb(42, 47, 126);
/* oklch */ color: oklch(35.3% 0.132 274.7);
Tailwind
colors: {
  custom: {
    50: '#6e67a4',
    500: '#2a2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7e;
$custom-light: #6e67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7e",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 236.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.1315,
    "h": 274.7
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#2A2F7E
secondary
#AEA856
accent
#D14EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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