#2A2F7F#2A2F7F

#2A2F7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.133 H 274.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A2F7F
RGBrgb(42, 47, 127)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 67%, 50%)
CMYKcmyk(66.9%, 63%, 0%, 50.2%)
CIE-LABlab(23.86, 25.05, -46.00)
CIE-LCHlch(23.86, 52.38, 298.57°)
OKLaboklab(35.37% 0.0107 -0.1325)
OKLCHoklch(35.37% 0.133 274.6)
XYZxyz(5.8009, 4.0571, 20.5520)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7F #7F7A2A
analogous
#2A597F #2A2F7F #4F2A7F
triadic
#2A2F7F #7F2A2F #2F7F2A
tetradic
#2A2F7F #7F2A59 #7F7A2A #2A7F4F
square
#2A2F7F #7F2A59 #7F7A2A #2A7F4F
split-complementary
#2A2F7F #7F4F2A #597F2A
monochromatic
#0C0D23 #1B1E51 #2A2F7F #3940AD #5B61C9

Accessibility & contrast

On white

11.59
#2A2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F7F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7F#FFFFFF#000000##FFFFFF
##2A2F7F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2f7f;
/* rgb */ color: rgb(42, 47, 127);
/* oklch */ color: oklch(35.4% 0.133 274.6);
Tailwind
colors: {
  custom: {
    50: '#6e67a5',
    500: '#2a2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7f;
$custom-light: #6e67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7f",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 236.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35367,
    "c": 0.13294,
    "h": 274.6
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#2A2F7F
secondary
#AEA957
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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