#2B308E#2B308E

#2B308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.152 H 273.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2B308E
RGBrgb(43, 48, 142)
HSLhsl(237, 54%, 36%)
HSVhsv(237, 70%, 56%)
CMYKcmyk(69.7%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.50, 30.03, -52.69)
CIE-LCHlch(25.50, 60.65, 299.68°)
OKLaboklab(37% 0.0102 -0.1521)
OKLCHoklch(37% 0.152 273.8)
XYZxyz(6.9341, 4.5798, 26.1045)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B308E #8E892B
analogous
#2B628E #2B308E #582B8E
triadic
#2B308E #8E2B30 #308E2B
tetradic
#2B308E #8E2B62 #8E892B #2B8E58
square
#2B308E #8E2B62 #8E892B #2B8E58
split-complementary
#2B308E #8E582B #628E2B
monochromatic
#0F1030 #1D205F #2B308E #3940BD #6369D0

Accessibility & contrast

On white

10.96
#2B308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2B308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B308E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B308E#FFFFFF#000000##FFFFFF
##2B308E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b308e;
/* rgb */ color: rgb(43, 48, 142);
/* oklch */ color: oklch(37.0% 0.152 273.8);
Tailwind
colors: {
  custom: {
    50: '#7268b0',
    500: '#2b308e',
    950: '#000000',
  },
}
SCSS
$custom: #2b308e;
$custom-light: #7268b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b308e",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 236.97,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37001,
    "c": 0.15243,
    "h": 273.8
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#2B308E
secondary
#B6B25F
accent
#D64BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B308E

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

Preview Lab → · Contrast checker → · Palette generator →

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