#2A2F8D#2A2F8D

#2A2F8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.153 H 273.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2F8D
RGBrgb(42, 47, 141)
HSLhsl(237, 54%, 36%)
HSVhsv(237, 70%, 55%)
CMYKcmyk(70.2%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.10, 30.19, -52.73)
CIE-LCHlch(25.10, 60.76, 299.79°)
OKLaboklab(36.66% 0.0098 -0.1522)
OKLCHoklch(36.66% 0.153 273.7)
XYZxyz(6.7775, 4.4477, 25.6955)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F8D #8D882A
analogous
#2A608D #2A2F8D #562A8D
triadic
#2A2F8D #8D2A2F #2F8D2A
tetradic
#2A2F8D #8D2A60 #8D882A #2A8D56
square
#2A2F8D #8D2A60 #8D882A #2A8D56
split-complementary
#2A2F8D #8D562A #608D2A
monochromatic
#0E102F #1C1F5E #2A2F8D #383FBC #6167D0

Accessibility & contrast

On white

11.11
#2A2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F8D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F8D#FFFFFF#000000##FFFFFF
##2A2F8D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2f8d;
/* rgb */ color: rgb(42, 47, 141);
/* oklch */ color: oklch(36.7% 0.153 273.7);
Tailwind
colors: {
  custom: {
    50: '#7268af',
    500: '#2a2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f8d;
$custom-light: #7268af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f8d",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 236.97,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36661,
    "c": 0.15257,
    "h": 273.7
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#2A2F8D
secondary
#B6B15D
accent
#D64ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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