#2B2F9A#2B2F9A

#2B2F9A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.170 H 273.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2B2F9A
RGBrgb(43, 47, 154)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 72%, 60%)
CMYKcmyk(72.1%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.39, 34.98, -58.62)
CIE-LCHlch(26.39, 68.27, 300.83°)
OKLaboklab(37.99% 0.0097 -0.1695)
OKLCHoklch(37.99% 0.17 273.3)
XYZxyz(7.8436, 4.8789, 31.0940)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F9A #9A962B
analogous
#2B669A #2B2F9A #5E2B9A
triadic
#2B2F9A #9A2B2F #2F9A2B
tetradic
#2B2F9A #9A2B66 #9A962B #2B9A5E
square
#2B2F9A #9A2B66 #9A962B #2B9A5E
split-complementary
#2B2F9A #9A5E2B #669A2B
monochromatic
#10123A #1E206A #2B2F9A #3A3FC8 #6A6ED5

Accessibility & contrast

On white

10.63
#2B2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2B2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F9A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F9A#FFFFFF#000000##FFFFFF
##2B2F9A1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2f9a;
/* rgb */ color: rgb(43, 47, 154);
/* oklch */ color: oklch(38.0% 0.170 273.3);
Tailwind
colors: {
  custom: {
    50: '#7568b9',
    500: '#2b2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f9a;
$custom-light: #7568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f9a",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 237.838,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.16974,
    "h": 273.3
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#2B2F9A
secondary
#BCB965
accent
#DA48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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