#2A2F93#2A2F93

#2A2F93 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.161 H 273.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2F93
RGBrgb(42, 47, 147)
HSLhsl(237, 56%, 37%)
HSVhsv(237, 71%, 58%)
CMYKcmyk(71.4%, 68%, 0%, 42.4%)
CIE-LABlab(25.66, 32.36, -55.53)
CIE-LCHlch(25.66, 64.27, 300.23°)
OKLaboklab(37.24% 0.0093 -0.1604)
OKLCHoklch(37.24% 0.161 273.3)
XYZxyz(7.2361, 4.6312, 28.1107)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F93 #938E2A
analogous
#2A6493 #2A2F93 #5A2A93
triadic
#2A2F93 #932A2F #2F932A
tetradic
#2A2F93 #932A64 #938E2A #2A935A
square
#2A2F93 #932A64 #938E2A #2A935A
split-complementary
#2A2F93 #935A2A #64932A
monochromatic
#0F1134 #1C2063 #2A2F93 #383EC3 #656AD3

Accessibility & contrast

On white

10.90
#2A2F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A2F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F93
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F93#FFFFFF#000000##FFFFFF
##2A2F931.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#003891
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2f93;
/* rgb */ color: rgb(42, 47, 147);
/* oklch */ color: oklch(37.2% 0.161 273.3);
Tailwind
colors: {
  custom: {
    50: '#7368b4',
    500: '#2a2f93',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f93;
$custom-light: #7368b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f93",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 237.143,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37238,
    "c": 0.16071,
    "h": 273.3
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#2A2F93
secondary
#B9B560
accent
#D849DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F93

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

Preview Lab → · Contrast checker → · Palette generator →

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