#2B2F9B#2B2F9B

#2B2F9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.171 H 273.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2B2F9B
RGBrgb(43, 47, 155)
HSLhsl(238, 57%, 39%)
HSVhsv(238, 72%, 61%)
CMYKcmyk(72.3%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.48, 35.34, -59.08)
CIE-LCHlch(26.48, 68.84, 300.89°)
OKLaboklab(38.09% 0.0095 -0.1708)
OKLCHoklch(38.09% 0.171 273.2)
XYZxyz(7.9272, 4.9124, 31.5344)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F9B #9B972B
analogous
#2B679B #2B2F9B #5F2B9B
triadic
#2B2F9B #9B2B2F #2F9B2B
tetradic
#2B2F9B #9B2B67 #9B972B #2B9B5F
square
#2B2F9B #9B2B67 #9B972B #2B9B5F
split-complementary
#2B2F9B #9B5F2B #679B2B
monochromatic
#10123B #1E206B #2B2F9B #3B40C9 #6B6ED6

Accessibility & contrast

On white

10.59
#2B2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2F9B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F9B#FFFFFF#000000##FFFFFF
##2B2F9B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b2f9b;
/* rgb */ color: rgb(43, 47, 155);
/* oklch */ color: oklch(38.1% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#7568ba',
    500: '#2b2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f9b;
$custom-light: #7568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f9b",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 237.857,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38087,
    "c": 0.17106,
    "h": 273.2
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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