#2E307C#2E307C

#2E307C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.126 H 276.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2E307C
RGBrgb(46, 48, 124)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(62.9%, 61.3%, 0%, 51.4%)
CIE-LABlab(24.16, 23.98, -43.61)
CIE-LCHlch(24.16, 49.77, 298.81°)
OKLaboklab(35.59% 0.0148 -0.1253)
OKLCHoklch(35.59% 0.126 276.7)
XYZxyz(5.8206, 4.1495, 19.5591)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E307C #7C7A2E
analogous
#2E577C #2E307C #532E7C
triadic
#2E307C #7C2E30 #307C2E
tetradic
#2E307C #7C2E57 #7C7A2E #2E7C53
square
#2E307C #7C2E57 #7C7A2E #2E7C53
split-complementary
#2E307C #7C532E #577C2E
monochromatic
#0D0D23 #1D1F4F #2E307C #3F41A9 #6063C4

Accessibility & contrast

On white

11.48
#2E307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E307C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E307C#FFFFFF#000000##FFFFFF
##2E307C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e307c;
/* rgb */ color: rgb(46, 48, 124);
/* oklch */ color: oklch(35.6% 0.126 276.7);
Tailwind
colors: {
  custom: {
    50: '#7068a3',
    500: '#2e307c',
    950: '#000000',
  },
}
SCSS
$custom: #2e307c;
$custom-light: #7068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e307c",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 238.462,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.12621,
    "h": 276.7
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#2E307C
secondary
#ABA95B
accent
#D252D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E307C

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

Preview Lab → · Contrast checker → · Palette generator →

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