#2B2F7B#2B2F7B

#2B2F7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.127 H 275.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2B2F7B
RGBrgb(43, 47, 123)
HSLhsl(237, 48%, 33%)
HSVhsv(237, 65%, 48%)
CMYKcmyk(65%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.59, 23.75, -43.91)
CIE-LCHlch(23.59, 49.92, 298.41°)
OKLaboklab(35.08% 0.012 -0.1263)
OKLCHoklch(35.08% 0.127 275.4)
XYZxyz(5.5868, 3.9762, 19.2081)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F7B #7B772B
analogous
#2B577B #2B2F7B #4F2B7B
triadic
#2B2F7B #7B2B2F #2F7B2B
tetradic
#2B2F7B #7B2B57 #7B772B #2B7B4F
square
#2B2F7B #7B2B57 #7B772B #2B7B4F
split-complementary
#2B2F7B #7B4F2B #577B2B
monochromatic
#0B0C20 #1B1E4E #2B2F7B #3B40A8 #5B60C6

Accessibility & contrast

On white

11.70
#2B2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F7B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F7B#FFFFFF#000000##FFFFFF
##2B2F7B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2f7b;
/* rgb */ color: rgb(43, 47, 123);
/* oklch */ color: oklch(35.1% 0.127 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e67a2',
    500: '#2b2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f7b;
$custom-light: #6e67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f7b",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 237,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.12689,
    "h": 275.4
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#2B2F7B
secondary
#ABA756
accent
#D150D8
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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