#231874#231874

#231874 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.147 H 278.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#231874
RGBrgb(35, 24, 116)
HSLhsl(247, 66%, 27%)
HSVhsv(247, 79%, 45%)
CMYKcmyk(69.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(16.85, 34.77, -50.50)
CIE-LCHlch(16.85, 61.31, 304.54°)
OKLaboklab(29.84% 0.0205 -0.1459)
OKLCHoklch(29.84% 0.147 278)
XYZxyz(4.1711, 2.2712, 16.7382)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231874 #697418
analogous
#183B74 #231874 #511874
triadic
#231874 #742318 #187423
tetradic
#231874 #74183B #697418 #187451
square
#231874 #74183B #697418 #187451
split-complementary
#231874 #745118 #3B7418
monochromatic
#080519 #140E41 #231874 #3222A7 #4532D5

Accessibility & contrast

On white

14.44
#231874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#231874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231874
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231874#FFFFFF#000000##FFFFFF
##2318741.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231874;
/* rgb */ color: rgb(35, 24, 116);
/* oklch */ color: oklch(29.8% 0.147 278.0);
Tailwind
colors: {
  custom: {
    50: '#6b579d',
    500: '#231874',
    950: '#000000',
  },
}
SCSS
$custom: #231874;
$custom-light: #6b579d;
$custom-dark: #000000;
JSON
{
  "hex": "#231874",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 247.174,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29843,
    "c": 0.14731,
    "h": 278
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#231874
secondary
#9CA93F
accent
#E93FD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231874

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

Preview Lab → · Contrast checker → · Palette generator →

#231874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva