#2F2A8B#2F2A8B

#2F2A8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.155 H 277.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2F2A8B
RGBrgb(47, 42, 139)
HSLhsl(243, 54%, 35%)
HSVhsv(243, 70%, 55%)
CMYKcmyk(66.2%, 69.8%, 0%, 45.5%)
CIE-LABlab(24.08, 33.38, -53.15)
CIE-LCHlch(24.08, 62.76, 302.13°)
OKLaboklab(35.96% 0.0202 -0.1533)
OKLCHoklch(35.96% 0.155 277.5)
XYZxyz(6.6589, 4.1238, 24.8662)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A8B #868B2A
analogous
#2A558B #2F2A8B #5F2A8B
triadic
#2F2A8B #8B2F2A #2A8B2F
tetradic
#2F2A8B #8B2A55 #868B2A #2A8B5F
square
#2F2A8B #8B2A55 #868B2A #2A8B5F
split-complementary
#2F2A8B #8B5F2A #558B2A
monochromatic
#0F0E2D #1F1C5C #2F2A8B #3F38BA #6660CF

Accessibility & contrast

On white

11.51
#2F2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2A8B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A8B#FFFFFF#000000##FFFFFF
##2F2A8B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2a8b;
/* rgb */ color: rgb(47, 42, 139);
/* oklch */ color: oklch(36.0% 0.155 277.5);
Tailwind
colors: {
  custom: {
    50: '#7464ae',
    500: '#2f2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a8b;
$custom-light: #7464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a8b",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 243.093,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.15468,
    "h": 277.5
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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