#2A2F7D#2A2F7D

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

Color values

HEX#2A2F7D
RGBrgb(42, 47, 125)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 66%, 49%)
CMYKcmyk(66.4%, 62.4%, 0%, 51%)
CIE-LABlab(23.69, 24.31, -45.02)
CIE-LCHlch(23.69, 51.16, 298.37°)
OKLaboklab(35.19% 0.0107 -0.1296)
OKLCHoklch(35.19% 0.13 274.7)
XYZxyz(5.6718, 4.0055, 19.8723)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7D #7D782A
analogous
#2A587D #2A2F7D #4F2A7D
triadic
#2A2F7D #7D2A2F #2F7D2A
tetradic
#2A2F7D #7D2A58 #7D782A #2A7D4F
square
#2A2F7D #7D2A58 #7D782A #2A7D4F
split-complementary
#2A2F7D #7D4F2A #587D2A
monochromatic
#0B0D21 #1B1E4F #2A2F7D #3940AB #5A60C8

Accessibility & contrast

On white

11.66
#2A2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F7D
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7D#FFFFFF#000000##FFFFFF
##2A2F7D1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2f7d;
/* rgb */ color: rgb(42, 47, 125);
/* oklch */ color: oklch(35.2% 0.130 274.7);
Tailwind
colors: {
  custom: {
    50: '#6e67a3',
    500: '#2a2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7d;
$custom-light: #6e67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7d",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 236.386,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35189,
    "c": 0.13005,
    "h": 274.7
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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