#2E238F#2E238F

#2E238F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.168 H 277.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2E238F
RGBrgb(46, 35, 143)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(67.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.88, 38.79, -57.61)
CIE-LCHlch(22.88, 69.45, 303.96°)
OKLaboklab(35.2% 0.0231 -0.1664)
OKLCHoklch(35.2% 0.168 277.9)
XYZxyz(6.6841, 3.7655, 26.3558)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238F #848F23
analogous
#234E8F #2E238F #64238F
triadic
#2E238F #8F2E23 #238F2E
tetradic
#2E238F #8F234E #848F23 #238F64
square
#2E238F #8F234E #848F23 #238F64
split-complementary
#2E238F #8F6423 #4E8F23
monochromatic
#0E0B2D #1E175E #2E238F #3E2FC0 #6457D6

Accessibility & contrast

On white

11.98
#2E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238F#FFFFFF#000000##FFFFFF
##2E238F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e238f;
/* rgb */ color: rgb(46, 35, 143);
/* oklch */ color: oklch(35.2% 0.168 277.9);
Tailwind
colors: {
  custom: {
    50: '#7560b1',
    500: '#2e238f',
    950: '#000000',
  },
}
SCSS
$custom: #2e238f;
$custom-light: #7560b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238f",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 246.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.352,
    "c": 0.16798,
    "h": 277.9
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#2E238F
secondary
#B0BA54
accent
#E444D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E238F

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

Preview Lab → · Contrast checker → · Palette generator →

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