#2A2F8E#2A2F8E

#2A2F8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.154 H 273.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2A2F8E
RGBrgb(42, 47, 142)
HSLhsl(237, 54%, 36%)
HSVhsv(237, 70%, 56%)
CMYKcmyk(70.4%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.19, 30.55, -53.20)
CIE-LCHlch(25.19, 61.35, 299.86°)
OKLaboklab(36.76% 0.0097 -0.1536)
OKLCHoklch(36.76% 0.154 273.6)
XYZxyz(6.8522, 4.4776, 26.0891)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F8E #8E892A
analogous
#2A618E #2A2F8E #572A8E
triadic
#2A2F8E #8E2A2F #2F8E2A
tetradic
#2A2F8E #8E2A61 #8E892A #2A8E57
square
#2A2F8E #8E2A61 #8E892A #2A8E57
split-complementary
#2A2F8E #8E572A #618E2A
monochromatic
#0E1030 #1C1F5F #2A2F8E #383FBD #6267D1

Accessibility & contrast

On white

11.08
#2A2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F8E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F8E#FFFFFF#000000##FFFFFF
##2A2F8E1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2f8e;
/* rgb */ color: rgb(42, 47, 142);
/* oklch */ color: oklch(36.8% 0.154 273.6);
Tailwind
colors: {
  custom: {
    50: '#7268b0',
    500: '#2a2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f8e;
$custom-light: #7268b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f8e",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 237,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.15394,
    "h": 273.6
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2A2F8E
secondary
#B6B25D
accent
#D64ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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