#2B2F9C#2B2F9C

#2B2F9C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.172 H 273.1°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2B2F9C
RGBrgb(43, 47, 156)
HSLhsl(238, 57%, 39%)
HSVhsv(238, 72%, 61%)
CMYKcmyk(72.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.58, 35.69, -59.53)
CIE-LCHlch(26.58, 69.41, 300.95°)
OKLaboklab(38.19% 0.0094 -0.1721)
OKLCHoklch(38.19% 0.172 273.1)
XYZxyz(8.0115, 4.9461, 31.9785)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F9C #9C982B
analogous
#2B689C #2B2F9C #602B9C
triadic
#2B2F9C #9C2B2F #2F9C2B
tetradic
#2B2F9C #9C2B68 #9C982B #2B9C60
square
#2B2F9C #9C2B68 #9C982B #2B9C60
split-complementary
#2B2F9C #9C602B #689C2B
monochromatic
#11123C #1E216C #2B2F9C #3B40C9 #6B6FD6

Accessibility & contrast

On white

10.56
#2B2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F9C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F9C#FFFFFF#000000##FFFFFF
##2B2F9C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b2f9c;
/* rgb */ color: rgb(43, 47, 156);
/* oklch */ color: oklch(38.2% 0.172 273.1);
Tailwind
colors: {
  custom: {
    50: '#7668ba',
    500: '#2b2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f9c;
$custom-light: #7668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f9c",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 237.876,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38186,
    "c": 0.17237,
    "h": 273.1
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#2B2F9C
secondary
#BDBA66
accent
#DB48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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