#2A2F7C#2A2F7C

#2A2F7C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.129 H 274.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2F7C
RGBrgb(42, 47, 124)
HSLhsl(236, 49%, 33%)
HSVhsv(236, 66%, 49%)
CMYKcmyk(66.1%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.61, 23.94, -44.52)
CIE-LCHlch(23.61, 50.55, 298.27°)
OKLaboklab(35.1% 0.0107 -0.1281)
OKLCHoklch(35.1% 0.129 274.8)
XYZxyz(5.6083, 3.9800, 19.5376)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7C #7C772A
analogous
#2A587C #2A2F7C #4E2A7C
triadic
#2A2F7C #7C2A2F #2F7C2A
tetradic
#2A2F7C #7C2A58 #7C772A #2A7C4E
square
#2A2F7C #7C2A58 #7C772A #2A7C4E
split-complementary
#2A2F7C #7C4E2A #587C2A
monochromatic
#0B0C21 #1B1E4E #2A2F7C #3940AA #5960C7

Accessibility & contrast

On white

11.69
#2A2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F7C
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7C#FFFFFF#000000##FFFFFF
##2A2F7C1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2f7c;
/* rgb */ color: rgb(42, 47, 124);
/* oklch */ color: oklch(35.1% 0.129 274.8);
Tailwind
colors: {
  custom: {
    50: '#6e67a3',
    500: '#2a2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7c;
$custom-light: #6e67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7c",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 236.341,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.351,
    "c": 0.1286,
    "h": 274.8
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#2A2F7C
secondary
#ADA755
accent
#D14FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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