#2A2F8B#2A2F8B

#2A2F8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.150 H 273.8°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2A2F8B
RGBrgb(42, 47, 139)
HSLhsl(237, 54%, 35%)
HSVhsv(237, 70%, 55%)
CMYKcmyk(69.8%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.92, 29.46, -51.79)
CIE-LCHlch(24.92, 59.58, 299.63°)
OKLaboklab(36.47% 0.01 -0.1495)
OKLCHoklch(36.47% 0.15 273.8)
XYZxyz(6.6300, 4.3887, 24.9188)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F8B #8B862A
analogous
#2A5F8B #2A2F8B #552A8B
triadic
#2A2F8B #8B2A2F #2F8B2A
tetradic
#2A2F8B #8B2A5F #8B862A #2A8B55
square
#2A2F8B #8B2A5F #8B862A #2A8B55
split-complementary
#2A2F8B #8B552A #5F8B2A
monochromatic
#0E0F2D #1C1F5C #2A2F8B #383FBA #6066CF

Accessibility & contrast

On white

11.18
#2A2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F8B
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F8B#FFFFFF#000000##FFFFFF
##2A2F8B1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2f8b;
/* rgb */ color: rgb(42, 47, 139);
/* oklch */ color: oklch(36.5% 0.150 273.8);
Tailwind
colors: {
  custom: {
    50: '#7167ae',
    500: '#2a2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f8b;
$custom-light: #7167ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f8b",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 236.907,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36472,
    "c": 0.14982,
    "h": 273.8
  },
  "luminance": 0.04389
}

Semantic roles & 50–950 ramp

primary
#2A2F8B
secondary
#B5B05C
accent
#D54BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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