#2B308B#2B308B

#2B308B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.148 H 274.0°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2B308B
RGBrgb(43, 48, 139)
HSLhsl(237, 53%, 36%)
HSVhsv(237, 69%, 55%)
CMYKcmyk(69.1%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.23, 28.94, -51.27)
CIE-LCHlch(25.23, 58.87, 299.44°)
OKLaboklab(36.72% 0.0104 -0.1479)
OKLCHoklch(36.72% 0.148 274)
XYZxyz(6.7119, 4.4910, 24.9342)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B308B #8B862B
analogous
#2B608B #2B308B #562B8B
triadic
#2B308B #8B2B30 #308B2B
tetradic
#2B308B #8B2B60 #8B862B #2B8B56
square
#2B308B #8B2B60 #8B862B #2B8B56
split-complementary
#2B308B #8B562B #608B2B
monochromatic
#0E102E #1D205C #2B308B #3940BA #6268CE

Accessibility & contrast

On white

11.06
#2B308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B308B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B308B#FFFFFF#000000##FFFFFF
##2B308B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b308b;
/* rgb */ color: rgb(43, 48, 139);
/* oklch */ color: oklch(36.7% 0.148 274.0);
Tailwind
colors: {
  custom: {
    50: '#7168ae',
    500: '#2b308b',
    950: '#000000',
  },
}
SCSS
$custom: #2b308b;
$custom-light: #7168ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b308b",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 236.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.14829,
    "h": 274
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#2B308B
secondary
#B5B05D
accent
#D54CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B308B

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

Preview Lab → · Contrast checker → · Palette generator →

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