#2A2F8F#2A2F8F

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

Color values

HEX#2A2F8F
RGBrgb(42, 47, 143)
HSLhsl(237, 55%, 36%)
HSVhsv(237, 71%, 56%)
CMYKcmyk(70.6%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.28, 30.91, -53.67)
CIE-LCHlch(25.28, 61.93, 299.94°)
OKLaboklab(36.85% 0.0096 -0.155)
OKLCHoklch(36.85% 0.155 273.6)
XYZxyz(6.9276, 4.5078, 26.4863)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F8F #8F8A2A
analogous
#2A628F #2A2F8F #582A8F
triadic
#2A2F8F #8F2A2F #2F8F2A
tetradic
#2A2F8F #8F2A62 #8F8A2A #2A8F58
square
#2A2F8F #8F2A62 #8F8A2A #2A8F58
split-complementary
#2A2F8F #8F582A #628F2A
monochromatic
#0E1030 #1C1F60 #2A2F8F #383FBE #6268D1

Accessibility & contrast

On white

11.04
#2A2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F8F
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F8F#FFFFFF#000000##FFFFFF
##2A2F8F1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2f8f;
/* rgb */ color: rgb(42, 47, 143);
/* oklch */ color: oklch(36.9% 0.155 273.6);
Tailwind
colors: {
  custom: {
    50: '#7268b1',
    500: '#2a2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f8f;
$custom-light: #7268b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f8f",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 237.03,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36852,
    "c": 0.1553,
    "h": 273.6
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#2A2F8F
secondary
#B7B35E
accent
#D74ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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