#232157#232157

#232157 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.095 H 280.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#232157
RGBrgb(35, 33, 87)
HSLhsl(242, 45%, 24%)
HSVhsv(242, 62%, 34%)
CMYKcmyk(59.8%, 62.1%, 0%, 65.9%)
CIE-LABlab(16.17, 18.59, -32.52)
CIE-LCHlch(16.17, 37.46, 299.75°)
OKLaboklab(28.49% 0.0168 -0.0932)
OKLCHoklch(28.49% 0.095 280.2)
XYZxyz(2.9568, 2.1330, 9.2709)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232157 #555721
analogous
#213A57 #232157 #3E2157
triadic
#232157 #572321 #215723
tetradic
#232157 #57213A #555721 #21573E
square
#232157 #57213A #555721 #21573E
split-complementary
#232157 #573E21 #3A5721
monochromatic
#090816 #11102B #232157 #353283 #4743B0

Accessibility & contrast

On white

14.72
#232157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#232157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232157
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232157#FFFFFF#000000##FFFFFF
##2321571.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#0A2E38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #232157;
/* rgb */ color: rgb(35, 33, 87);
/* oklch */ color: oklch(28.5% 0.095 280.2);
Tailwind
colors: {
  custom: {
    50: '#635c87',
    500: '#232157',
    950: '#000000',
  },
}
SCSS
$custom: #232157;
$custom-light: #635c87;
$custom-dark: #000000;
JSON
{
  "hex": "#232157",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 242.222,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28486,
    "c": 0.09469,
    "h": 280.2
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#232157
secondary
#898B49
accent
#D553D0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #232157

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

Preview Lab → · Contrast checker → · Palette generator →

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