#2A2F94#2A2F94

#2A2F94 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.162 H 273.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2F94
RGBrgb(42, 47, 148)
HSLhsl(237, 56%, 37%)
HSVhsv(237, 72%, 58%)
CMYKcmyk(71.6%, 68.2%, 0%, 42%)
CIE-LABlab(25.75, 32.72, -55.99)
CIE-LCHlch(25.75, 64.85, 300.30°)
OKLaboklab(37.34% 0.0091 -0.1618)
OKLCHoklch(37.34% 0.162 273.2)
XYZxyz(7.3149, 4.6627, 28.5257)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F94 #948F2A
analogous
#2A6494 #2A2F94 #5A2A94
triadic
#2A2F94 #942A2F #2F942A
tetradic
#2A2F94 #942A64 #948F2A #2A945A
square
#2A2F94 #942A64 #948F2A #2A945A
split-complementary
#2A2F94 #945A2A #64942A
monochromatic
#0F1135 #1C2064 #2A2F94 #383EC4 #656AD3

Accessibility & contrast

On white

10.87
#2A2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F94
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F94#FFFFFF#000000##FFFFFF
##2A2F941.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2f94;
/* rgb */ color: rgb(42, 47, 148);
/* oklch */ color: oklch(37.3% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#7368b4',
    500: '#2a2f94',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f94;
$custom-light: #7368b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f94",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 237.17,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.16205,
    "h": 273.2
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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