#2F2A8A#2F2A8A

#2F2A8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.153 H 277.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2F2A8A
RGBrgb(47, 42, 138)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 70%, 54%)
CMYKcmyk(65.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.98, 33.03, -52.68)
CIE-LCHlch(23.98, 62.18, 302.09°)
OKLaboklab(35.86% 0.0204 -0.152)
OKLCHoklch(35.86% 0.153 277.6)
XYZxyz(6.5862, 4.0947, 24.4831)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A8A #858A2A
analogous
#2A558A #2F2A8A #5F2A8A
triadic
#2F2A8A #8A2F2A #2A8A2F
tetradic
#2F2A8A #8A2A55 #858A2A #2A8A5F
square
#2F2A8A #8A2A55 #858A2A #2A8A5F
split-complementary
#2F2A8A #8A5F2A #558A2A
monochromatic
#0F0D2C #1F1C5B #2F2A8A #3F38B9 #6660CF

Accessibility & contrast

On white

11.54
#2F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A8A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A8A#FFFFFF#000000##FFFFFF
##2F2A8A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2a8a;
/* rgb */ color: rgb(47, 42, 138);
/* oklch */ color: oklch(35.9% 0.153 277.6);
Tailwind
colors: {
  custom: {
    50: '#7464ad',
    500: '#2f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a8a;
$custom-light: #7464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a8a",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 243.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35857,
    "c": 0.15334,
    "h": 277.6
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#2F2A8A
secondary
#B0B45B
accent
#DD4BD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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