#2A2F90#2A2F90

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

Color values

HEX#2A2F90
RGBrgb(42, 47, 144)
HSLhsl(237, 55%, 36%)
HSVhsv(237, 71%, 56%)
CMYKcmyk(70.8%, 67.4%, 0%, 43.5%)
CIE-LABlab(25.38, 31.27, -54.14)
CIE-LCHlch(25.38, 62.52, 300.01°)
OKLaboklab(36.95% 0.0095 -0.1564)
OKLCHoklch(36.95% 0.157 273.5)
XYZxyz(7.0037, 4.5382, 26.8870)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F90 #908B2A
analogous
#2A6290 #2A2F90 #582A90
triadic
#2A2F90 #902A2F #2F902A
tetradic
#2A2F90 #902A62 #908B2A #2A9058
square
#2A2F90 #902A62 #908B2A #2A9058
split-complementary
#2A2F90 #90582A #62902A
monochromatic
#0E1031 #1C2061 #2A2F90 #383EBF #6368D1

Accessibility & contrast

On white

11.01
#2A2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F90
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F90#FFFFFF#000000##FFFFFF
##2A2F901.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2f90;
/* rgb */ color: rgb(42, 47, 144);
/* oklch */ color: oklch(36.9% 0.157 273.5);
Tailwind
colors: {
  custom: {
    50: '#7268b1',
    500: '#2a2f90',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f90;
$custom-light: #7268b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f90",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 237.059,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36948,
    "c": 0.15665,
    "h": 273.5
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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