#2A2F92#2A2F92

#2A2F92 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.159 H 273.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2A2F92
RGBrgb(42, 47, 146)
HSLhsl(237, 55%, 37%)
HSVhsv(237, 71%, 57%)
CMYKcmyk(71.2%, 67.8%, 0%, 42.7%)
CIE-LABlab(25.56, 32.00, -55.07)
CIE-LCHlch(25.56, 63.69, 300.16°)
OKLaboklab(37.14% 0.0094 -0.1591)
OKLCHoklch(37.14% 0.159 273.4)
XYZxyz(7.1579, 4.5999, 27.6992)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F92 #928D2A
analogous
#2A6392 #2A2F92 #592A92
triadic
#2A2F92 #922A2F #2F922A
tetradic
#2A2F92 #922A63 #928D2A #2A9259
square
#2A2F92 #922A63 #928D2A #2A9259
split-complementary
#2A2F92 #92592A #63922A
monochromatic
#0F1033 #1C2062 #2A2F92 #383EC2 #6469D2

Accessibility & contrast

On white

10.94
#2A2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F92
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F92#FFFFFF#000000##FFFFFF
##2A2F921.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003890
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2f92;
/* rgb */ color: rgb(42, 47, 146);
/* oklch */ color: oklch(37.1% 0.159 273.4);
Tailwind
colors: {
  custom: {
    50: '#7368b3',
    500: '#2a2f92',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f92;
$custom-light: #7368b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f92",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 237.115,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37141,
    "c": 0.15935,
    "h": 273.4
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#2A2F92
secondary
#B8B45F
accent
#D749DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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